Script
POST /script/{name}
Update an existing script or create a new one if it does not exist (in this case, the new script ID is returned in the data field).
Request
- Base URLhttps://api.phantombuster.com/api/v2
- AuthAPI key in header X-Phantombuster-Key-1
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
namestring required
Name of the script to update or create, with its extension (.js or .coffee).
Query parameters
textstring required
Full text contents of the script. This parameter must be in the request body in x-www-form-urlencoded format.
insertOnlyboolean
If true, make sure that we don’t update an existing script (optional). An error will be returned if a script with the same name already exists.
Response
Success
Example response
{
"status": "success",
"data": 345
}Changes
No recorded changes to this operation across all 1 revision of this API.