API referenceWorkspaces

POST /workspaces/preview stored

POST
/workspaces/preview

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/preview" \  -H "Content-Type: application/json" \  -d '{    "observations": [      {        "event": "string",        "occurred_at": "2019-08-24T14:15:22Z",        "schema_version": 1,        "source_event_id": "string"      }    ],    "spec": {      "name": "string"    }  }'
{  "$schema": "https://example.com/schemas/WorkspaceEntitiesOutputBody.json",  "dropped": [    "string"  ],  "entities": [    {      "aggregates": {        "openByType": {          "property1": 0,          "property2": 0        },        "waitKey": "string",        "waitingOn": "string"      },      "evidence": "string",      "fields": {        "property1": null,        "property2": null      },      "id": "string",      "lastActivityAt": "2019-08-24T14:15:22Z",      "links": [        "string"      ],      "masked": [        "string"      ],      "observedState": "string",      "occurredAt": "2019-08-24T14:15:22Z",      "profile": {        "property1": null,        "property2": null      },      "receivedAt": "2019-08-24T14:15:22Z",      "snapshot": true,      "stale": true,      "type": "string",      "versions": {        "property1": {          "eventId": "string",          "revision": 0,          "sourceRef": "string",          "time": "2019-08-24T14:15:22Z"        },        "property2": {          "eventId": "string",          "revision": 0,          "sourceRef": "string",          "time": "2019-08-24T14:15:22Z"        }      }    }  ],  "nextCursor": "string"}