Sequences

Create a sequence and its v1 draft

POST
/v1/sequences

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 160
description?string
Lengthlength <= 2000
external_id?string
Lengthlength <= 64
created_by?string
Lengthlength <= 64
labels?
definition?unknown

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/sequences' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
{  "success": true,  "data": {    "sequence": {      "id": "string",      "projectId": "string",      "externalId": "string",      "name": "string",      "description": "string",      "createdBy": "string",      "labels": {        "property1": null,        "property2": null      },      "status": "active",      "defaultVersionId": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "version": {      "id": "string",      "projectId": "string",      "sequenceId": "string",      "tag": "string",      "status": "draft",      "definition": {        "property1": null,        "property2": null      },      "schemaVersion": -9007199254740991,      "lockVersion": -9007199254740991,      "basedOnVersionId": "string",      "createdBy": "string",      "publishedBy": "string",      "publishedAt": "2019-08-24T14:15:22Z",      "archivedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "problems": [      {        "path": "string",        "code": "string",        "message": "string",        "severity": "error"      }    ]  },  "meta": {    "request_id": "string"  }}