API referenceWorkspaces

POST /workspaces/{workspaceId}/revisions

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"      }    ]  }}