/v1/definitions/{key}/scriptsAdd a call script to a page
Writes version 1 of a call script for one target on the LEADS page. scope is workspace, status (with statusValue and no row) or row (with rowId and no status); name is required and spine must carry at least one section, while brief and branches hold the opening notes and the objection handling. Workspace admin — a workspace- or status-scoped script is words every rep on the page will read; the door a REP uses for one lead is post_definitions_key_rows_rowId_script_generate.
Access class: def:admin.
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Request body
application/jsonrequiredResponses
the action's answer
{
"data": {
"branches": [
"string"
],
"brief": {
"headline": "string"
},
"createdAt": "string",
"definitionKey": "string",
"generator": "string",
"id": 1.5,
"kind": "string",
"name": "string",
"scope": "string",
"spine": [
{
"key": "string",
"label": "string",
"purpose": "string",
"say": "string"
}
],
"updatedAt": "string",
"version": 1.5
}
}a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}