POST /workspaces/{workspaceId}/draft/activate is then cleared
Fails with 422 listing the issues when the draft has validation errors. Projections rebuild in the background; the workspace's requestedRevision shows progress until it becomes the activeRevision.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/workspaces/string/draft/activate" \ -H "Content-Type: application/json" \ -d '{}'{ "$schema": "https://example.com/schemas/ActivateDraftOutputBody.json", "revision": "string", "status": "string"}When set, activate only if the draft is still at this version
int640 <= valuePOST /workspaces/{workspaceId}/activate POST
Previous Page
POST /workspaces/{workspaceId}/draft/ops POST
Ops apply in order and all-or-nothing. The result is validated and returned with its issues and version+1. Ops: workspace.update; attribute.add|update|remove (the data dictionary); entity.add|update|remove; entity.field.add|remove and entity.profile.add|remove (key = attribute); event.add|update|remove (type = entity, match = rule); funnel.*, alert.* (name) and view.* (name = view id). Call workspaces.describe for the full format and examples. On 409, re-read the draft from the error body and reapply.