Update an existing phone script.

View as Markdown

Authentication

X-API-Keystring

API Key authentication. Generate your API key in the Gail Portal under General > Integrations > API Keys.

Path parameters

scriptIdstringRequiredformat: "uuid"
The unique identifier of the phone script to update.

Request

The updated phone script configuration.
agentNamestring or nullRequired
Gets or sets the agent name.
greetingstring or nullRequired
Gets or sets the greeting.
goodbyestring or nullRequired
Gets or sets the goodBye.
faqslist of objects or nullRequired
Gets or sets the faq.
namestring or nullOptional
Gets or sets the Name.
directionstring or nullOptional
Gets or sets the direction.
useCaseAssociationslist of objects or nullOptional
Gets or sets the UseCase associations.
voicemailstring or nullOptional
Gets or sets the voicemail.
voicestring or nullOptional
Gets or sets the voice.
voiceProviderobjectOptional
giveSurveybooleanOptional
Gets or sets the GiveSurvey indicator.
postCallScriptslist of objects or nullOptional

Gets or sets the list of post-call script actions to run after call ends.

knowledgeBaseobjectOptional

Response

OK
agentNamestring or null
Gets or sets the agent's name.
greetingstring or null
Gets or sets the greeting.
goodbyestring or null
Gets or sets the goodBye.
useCaseAssociationslist of objects or null
Gets or sets the UseCase associations.
giveSurveyboolean
Gets or sets the GiveSurvey indicator.
faqslist of objects or null
Gets or sets the faq.
postCallScriptslist of objects or null

Gets or sets the list of post-call script actions to run after call ends.

voicemailstring or nullOptional
Gets or sets the voicemail.
voicestring or nullOptional
Gets or sets the voice.
voiceProviderobjectOptional
knowledgeBaseobjectOptional

Errors

400
Bad Request Error
404
Not Found Error