API referenceWorkspaces
POST /workspaces/{workspaceId}/revisions
Path Parameters
workspaceId*string
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/revisions" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "$schema": "https://example.com/schemas/ActivityRevision.json", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string", "id": "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" } ] }}alerts?array<>|
Items
items <= 20attributes?array<>|
Items
items <= 200description?string
Length
length <= 500entities?array<>|
Items
items <= 20funnels?array<>|
Items
items <= 20heartbeat?string
Event name the source emits as a liveness heartbeat; its attributes are shown as source health
Length
length <= 120name*string
Length
1 <= length <= 120schemaVersion?integer
Format
int64Range
0 <= value <= 1template?
views?array<>|
Items
items <= 40