Substy Developers
Scripts

Reorder script messages

Update message-template positions within a sales script to change its sequence order.

PATCH/v1/agencies/{agencyId}/scripts/{scriptId}/template-order

Update message-template positions within a sales script to change its sequence order.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

agencyId*string
Length1 <= length
scriptId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/agencies/string/scripts/string/template-order" \  -H "Authorization: Bearer YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "data": {      "templates": [        {          "id": "string",          "position": 0        }      ]    }  }'
{  "data": [    0  ],  "meta": {    "requestId": "string",    "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",    "status": "COMPLETED"  }}