Skip to navigation

Publish the current draft of a script.

View as Markdown

Requires scope: script.create (product: GailAgent)

Authentication

X-API-Keystring

API Key authentication. Generate your API key in the Gail Portal under Marketplace > Developers > REST APIs.

Path parameters

scriptIdstringRequiredformat: "uuid"
The script id.

Query parameters

expectedRevisionintegerOptional

The revision the editor loaded. Send it with expectedConcurrencyVersion to have the publish refused with ERR_SCRIPT_CHANGED if someone else saved or published since, instead of publishing their draft.

expectedConcurrencyVersionintegerOptional
The concurrency version the editor loaded, from the script response.

Response

OK

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error