Download Postman collection
Relative URI |
Method |
Success code |
Description |
---|---|---|---|
|
|
|
Get all scripts. |
|
|
Create a script. |
|
|
|
|
Get a specific script. |
|
|
Update part of a specific script. |
|
|
|
Update a specific script. |
|
|
|
Delete a specific script. |
|
|
|
|
Get logs for a specific script. |
|
|
|
Get all resources using or used by this script. |
The following field is available to update using PATCH
. You must use the following format to update the fields:
[ { "op": "replace", "path": "/fieldname", "value": "newvalue" } ]
Field |
Data type |
---|---|
|
|
GET /v1/scripts/654•••••••••fd3 HTTP/1.1 Host: api.integrator.io Authorization: Bearer my_api_token
{ "_id": "654•••••••••fd3", "lastModified": "2023-10-31T08:00:05.771Z", "createdAt": "2023-10-31T07:58:53.330Z", "name": "Test hook", "sandbox": false, "postResponseHookToProcessOnChildRecord": false, "content": "import { exports } from 'integrator-api'\n\nfunction runExport(options) {\n \n const output = exports.run( {_id : '64c••••••••••8ff' })\n return {\n statusCode: 200,\n headers: {},\n body:output\n }\n}" }
PUT /v1/scripts/654•••••••••fd3 HTTP/1.1 Host: api.integrator.io Authorization: Bearer my_api_token { "name": "Test hook", "sandbox": false, "postResponseHookToProcessOnChildRecord": false, "content": "import { exports } from 'integrator-api'\n\nfunction runExport(options) {\n }\n}" }
Comments
Please sign in to leave a comment.