Docs
API ReferenceReferenceApps

Update an app's draft

PATCH
/apps/{appId}/draft

Only the fields you pass change; arrays replace the whole set. Requires the apps:write scope; a personal key also needs the member role or above. Edits change the DRAFT only: nothing reaches end users until POST …/publish. Pass the updatedAt you last read as expectedUpdatedAt (or the If-Unmodified-Since header) to refuse the write when the draft changed in the meantime.

AuthorizationBearer <token>

An organization API key, created from a Portal's Webhooks page (Provisioning API card). The secret is shown once at creation and stored only as a hash. Keys are organization-wide and carry scopes (end_users:read, end_users:write). Rate limit: 120 requests per minute per key (sliding 60-second window).

In: header

Path Parameters

appId*string
Formatuuid

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

application/json

curl -X PATCH "https://example.com/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/draft" \  -H "Content-Type: application/json" \  -d '{}'
{  "app": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "slug": "string",    "description": "string",    "adviser": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "published": true    },    "members": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "kind": "agent",        "name": "string",        "published": true,        "position": 0      }    ],    "orchestrationMode": "string",    "goals": "string",    "adviserInstructions": "string",    "api": {      "conversationEnabled": true,      "transactionEnabled": true,      "greeting": "string",      "inputSchema": {},      "outputSchema": {}    },    "published": true,    "productionVersionId": "a45124a6-f1ae-495a-9d4c-946315091da1",    "versionCount": 0,    "lastChange": {      "at": "2019-08-24T14:15:22Z",      "by": "string",      "source": "ui",      "action": "string",      "summary": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}