Script Versions

Get Script Version

get

Retrieves the details of a specific script version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
script_versionstringRequired

The script version identifier.

Query parameters
filter[is_deployed]stringOptional

Filter results by is_deployed.

filter[deployed_at]stringOptional

Filter results by deployed_at.

includestringOptional

Comma-separated list of relationships to include. Available: content, script

pageinteger · min: 1Optional

Page number for pagination.

Default: 1
per_pageinteger · min: 1 · max: 100Optional

Number of results per page.

Responses
chevron-right
200

Successful response

application/json
get
/api/v1/script-versions/{script_version}

Delete Script Version

delete

Permanently deletes a specific script version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
script_versionstringRequired

The script version identifier.

Responses
chevron-right
200

Successful response

application/json
messagestringOptional
delete
/api/v1/script-versions/{script_version}

Upload Script Version

post

Uploads a given script version to your private marketplace.

This operation requires administrator permissions. If you are authorising requests with an API key, this request won't work (company-level API keys are associated with manager-level permissions). If you are an administrator, you can use OAuth 2 credentials to complete this operation. For more information please see our Authenticationarrow-up-right section.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
script_versionstringRequired

The script version identifier.

Body
privatestringOptional
Responses
chevron-right
200

Successful response

application/json
objectOptional
post
/api/v1/script-versions/{script_version}/upload

Deploy Script Version

post

Deploys a specific script version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
script_versionstringRequired

The script version identifier.

Responses
chevron-right
200

Successful response

application/json
objectOptional
post
/api/v1/script-versions/{script_version}/deploy

Invoke Script Version

post

Invokes a specific script version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
script_versionstringRequired

The script version identifier.

Body
variablesstringOptional
payloadstringOptional
Responses
chevron-right
200

Successful response

application/json
objectOptional
post
/api/v1/script-versions/{script_version}/invoke

List Script Version Logs

get

Retrieves a list of logs for a specific script version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
script_versionstringRequired

The script version identifier.

Responses
chevron-right
200

Successful response

application/json
get
/api/v1/script-versions/{script_version}/logs

List Script Versions

get

Retrieves a paginated list of versions for a specific script. Can be filtered by is_deployed and deployed_at.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
scriptstringRequired

The script identifier.

Query parameters
filter[is_deployed]stringOptional

Filter results by is_deployed.

filter[deployed_at]stringOptional

Filter results by deployed_at.

includestringOptional

Comma-separated list of relationships to include. Available: content, script

pageinteger · min: 1Optional

Page number for pagination.

Default: 1
per_pageinteger · min: 1 · max: 100Optional

Number of results per page.

Responses
chevron-right
200

Successful response

application/json
get
/api/v1/scripts/{script}/script-versions

Create Script Version

post

Creates a new version for a specific script.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
scriptstringRequired

The script identifier.

Body
contentstring · min: 1Required
Responses
chevron-right
200

Successful response

application/json
post
/api/v1/scripts/{script}/script-versions

Last updated

Was this helpful?