Company logoTrust Center Documentation

Create update

Create a draft update. Drafts are the only create behavior: save the update first, then call the publish or schedule endpoint when it is ready for customers.…

POST
/api/v1/updates

Create a draft update. Drafts are the only create behavior: save the update first, then call the publish or schedule endpoint when it is ready for customers. Follow-ups can only be created for published root updates. When parent is supplied, omit order; follow-up order is changed on the root update.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/updates" \  -H "Content-Type: application/json" \  -d '{    "title": "Privacy policy refresh",    "summary": "We are preparing a refreshed privacy policy.",    "description_md": "We are updating our privacy policy language.",    "classification": "cls_legal",    "access_level": "public",    "channels": [      "trust_center"    ]  }'
{  "success": true,  "data": {    "update": {      "id": "string",      "title": "string",      "slug": "string",      "summary": "string",      "description_md": "string",      "status": "draft",      "classification": "string",      "access_level": "public",      "send_mode": "none",      "channels": [        "trust_center"      ],      "scheduled_at": "2019-08-24T14:15:22Z",      "scheduled_timezone": "string",      "published_at": "2019-08-24T14:15:22Z",      "effective_at": "2019-08-24T14:15:22Z",      "effective_timezone": "string",      "order": "asc",      "parent": "string",      "template": "string",      "documents": [        {          "id": "string",          "documents_id": "string"        }      ],      "subprocessors": [        {          "id": "string",          "subprocessors_id": "string"        }      ]    }  }}

How is this guide?