API referenceWorkspaces

GET /workspaces/{workspaceId}/draft on first read)

The draft is shared by the dashboard and coding agents. Edit it with workspaces.applyDraftOps, review with workspaces.draftChanges and activate with workspaces.activateDraft. Call workspaces.describe first to learn the format.

GET
/workspaces/{workspaceId}/draft

Path Parameters

workspaceId*string

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/workspaces/string/draft"
{  "$schema": "https://example.com/schemas/ActivityDraftView.json",  "draft": {    "baseRevision": "string",    "spec": {      "$schema": "https://example.com/schemas/ActivityWorkspaceSpec.json",      "alerts": [        {          "afterSeconds": 60,          "cooldownSeconds": 0,          "entity": "string",          "filter": {            "key": "string",            "role": "string",            "values": [              "string"            ]          },          "minCount": 0,          "name": "string",          "silent": true,          "state": "string",          "windowSeconds": 0        }      ],      "attributes": [        {          "cancelled": [            "string"          ],          "description": "string",          "entity": "string",          "expected": [            "string"          ],          "failure": [            "string"          ],          "key": "string",          "label": "string",          "maxLength": 0,          "multiple": true,          "pending": [            "string"          ],          "personal": true,          "role": "outcome",          "scope": true,          "type": "text",          "values": [            "string"          ]        }      ],      "description": "string",      "entities": [        {          "description": "string",          "events": [            {              "erase": true,              "label": "string",              "match": "string",              "only": [                "string"              ],              "passive": true,              "set": {                "property1": "string",                "property2": "string"              }            }          ],          "fields": [            "string"          ],          "label": "string",          "profile": [            "string"          ],          "rollup": [            "string"          ],          "staleAfterSeconds": 0,          "staleStates": [            "string"          ],          "terminal": [            "string"          ],          "type": "string"        }      ],      "funnels": [        {          "activation": {            "from": "string",            "to": "string",            "withinSeconds": 60          },          "entity": "string",          "errorKey": "string",          "failure": "string",          "linkedTo": "string",          "name": "string",          "splitBy": "string",          "stages": [            "string"          ]        }      ],      "heartbeat": "string",      "name": "string",      "schemaVersion": 0,      "template": {        "id": "string",        "version": 1      },      "views": [        {          "entities": [            "string"          ],          "entity": "string",          "exclude": [            {              "key": "string",              "role": "string",              "values": [                "string"              ]            }          ],          "filter": {            "key": "string",            "role": "string",            "values": [              "string"            ]          },          "from": {            "event": "string"          },          "funnel": "string",          "id": "string",          "key": "string",          "limit": 0,          "minCohort": 0,          "open": true,          "role": "string",          "splitBy": [            "string"          ],          "state": [            "string"          ],          "title": "string",          "to": {            "event": "string"          },          "type": "kpi",          "window": "15m"        }      ]    },    "updatedAt": "2019-08-24T14:15:22Z",    "updatedBy": "string",    "updatedClient": "string",    "updatedSource": "dashboard",    "version": 0,    "workspaceId": "string"  },  "issues": [    {      "message": "string",      "path": "string",      "severity": "error"    }  ]}