Shopify Script tag api return 400 HTTP error
<p>Shopify return HTTP 400 error when I made a request to script tag for creating script.</p>

<pre><code>HTTP/1.1 400 Bad Request
Server: nginx
Date: Sat, 06 Feb 2016 22:16:00 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 400 Bad Request
X-Frame-Options: DENY
X-ShopId: 11511010
X-ShardId: 2
X-Shopify-Shop-Api-Call-Limit: 1/40
HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT: 1/40
X-Stats-UserId: 0
X-Stats-ApiClientId: 1253884
X-Stats-ApiPermissionId: 17250892
X-XSS-Protection: 1; mode=block; report=/xss-report/30fa40b7-e2b9-44a1-b6ef-a3b43b8b95e3?source%5Baction%5D=create&amp;source%5Bcontroller%5D=admin%2Fscript_tags&amp;source%5Bsection%5D=admin
X-Request-Id: 30fa40b7-e2b9-44a1-b6ef-a3b43b8b95e3
X-Dc: chi2,ash

{"errors":{"script_tag":"Required parameter missing or invalid"}}
</code></pre>

<p>Here is my code format:</p>

<pre><code>$request_headers[] = "X-Shopify-Access-Token:".$token_id;
$request_headers[] = "Content-Type : application/json";

$ch = curl_init('https://revestore.myshopify.com/admin/script_tags.json');
curl_setopt($ch , CURLOPT_HEADER, TRUE);
curl_setopt($ch , CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch , CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch , CURLOPT_MAXREDIRS, 3);
curl_setopt($ch , CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch , CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch , CURLOPT_TIMEOUT, 30);
curl_setopt($ch , CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch , CURLOPT_POSTFIELDS, $args); 
curl_setopt($ch , CURLOPT_HTTPHEADER, $request_headers);

$response = curl_exec($ch);
curl_close($ch);            
print_r($response);
</code></pre>

<p>If anyone know relative solution please help me.
Thanks in Advance.</p>