Publish the current draft of a script.
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
scriptId
The script id.
Query parameters
expectedRevision
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.
expectedConcurrencyVersion
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