Anfrage und Antworten
{
"operationId": "updateSequence",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"expectedRevision"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"draft": {
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"nodes"
],
"properties": {
"schemaVersion": {
"type": "integer",
"enum": [
1
]
},
"nodes": {
"type": "array",
"minItems": 1,
"items": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"trigger",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"trigger"
]
},
"trigger": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"booking_created"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"confirmation_pending"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"after_booking_end"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"booking_rescheduled"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"offsetSeconds"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"before_booking"
]
},
"offsetSeconds": {
"type": "number",
"minimum": 0,
"description": "Positive duration in elapsed seconds; zero is rejected by domain validation."
}
}
}
]
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"durationSeconds",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"wait"
]
},
"durationSeconds": {
"type": "number",
"minimum": 0,
"description": "Positive duration in elapsed seconds; zero is rejected by domain validation."
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"condition",
"yes",
"no"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"branch"
]
},
"condition": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"version"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"booking_confirmed"
]
},
"version": {
"type": "integer",
"enum": [
1
]
}
}
},
"yes": {
"type": "string",
"nullable": true
},
"no": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"content",
"recipient",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email"
]
},
"content": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"texts"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"reminder"
]
},
"texts": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
}
}
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"locales"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"email"
]
},
"locales": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
}
}
}
}
}
]
},
"recipient": {
"type": "string",
"enum": [
"invitee",
"host"
]
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"content",
"recipient",
"recipientEmail",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email"
]
},
"content": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"texts"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"reminder"
]
},
"texts": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
}
}
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"locales"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"email"
]
},
"locales": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
}
}
}
}
}
]
},
"recipient": {
"type": "string",
"enum": [
"specific_email"
]
},
"recipientEmail": {
"type": "string"
},
"recipientEmails": {
"type": "array",
"items": {
"type": "string"
}
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"templateVersionId",
"recipient",
"recipientEmail",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email"
]
},
"templateVersionId": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"recipient": {
"type": "string",
"enum": [
"specific_email"
]
},
"recipientEmail": {
"type": "string"
},
"recipientEmails": {
"type": "array",
"items": {
"type": "string"
}
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"templateVersionId",
"recipient",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email",
"whatsapp"
]
},
"templateVersionId": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"recipient": {
"type": "string",
"enum": [
"invitee",
"host"
]
},
"next": {
"type": "string",
"nullable": true
}
}
}
]
}
}
}
},
"labels": {
"type": "array",
"maxItems": 3,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"color"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"color": {
"type": "string",
"enum": [
"blue",
"cyan",
"green",
"orange",
"pink",
"purple",
"gray"
]
}
}
}
},
"expectedRevision": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
}
}
}
},
"parameters": [
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"in": "path",
"name": "sequenceId",
"required": true
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"in": "header",
"name": "idempotency-key",
"required": true
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"in": "header",
"name": "x-booking-token",
"required": false
},
{
"schema": {
"type": "string"
},
"in": "header",
"name": "x-workspace-id",
"required": false,
"description": "Workspace ID. Required for session authentication when the user has multiple memberships; must name one of their workspaces. API keys remain bound to their own workspace."
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"in": "header",
"name": "x-csrf-token",
"required": false,
"description": "Required for cookie session mutations; not required for API keys."
}
],
"security": [
{
"apiKey": []
},
{
"session": []
}
],
"x-required-scopes": [
"write:sequences"
],
"x-public-api": true,
"x-api-stability": "beta",
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"workspaceId",
"name",
"draft",
"publishedVersionId",
"status",
"isDefault",
"usedByCount",
"createdAt",
"revision"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"draft": {
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"nodes"
],
"properties": {
"schemaVersion": {
"type": "integer",
"enum": [
1
]
},
"nodes": {
"type": "array",
"minItems": 1,
"items": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"trigger",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"trigger"
]
},
"trigger": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"booking_created"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"confirmation_pending"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"after_booking_end"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"booking_rescheduled"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"offsetSeconds"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"before_booking"
]
},
"offsetSeconds": {
"type": "number",
"minimum": 0,
"description": "Positive duration in elapsed seconds; zero is rejected by domain validation."
}
}
}
]
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"durationSeconds",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"wait"
]
},
"durationSeconds": {
"type": "number",
"minimum": 0,
"description": "Positive duration in elapsed seconds; zero is rejected by domain validation."
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"condition",
"yes",
"no"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"branch"
]
},
"condition": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"version"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"booking_confirmed"
]
},
"version": {
"type": "integer",
"enum": [
1
]
}
}
},
"yes": {
"type": "string",
"nullable": true
},
"no": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"content",
"recipient",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email"
]
},
"content": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"texts"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"reminder"
]
},
"texts": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
}
}
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"locales"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"email"
]
},
"locales": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
}
}
}
}
}
]
},
"recipient": {
"type": "string",
"enum": [
"invitee",
"host"
]
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"content",
"recipient",
"recipientEmail",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email"
]
},
"content": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"texts"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"reminder"
]
},
"texts": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
}
}
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"locales"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"email"
]
},
"locales": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
}
}
}
}
}
]
},
"recipient": {
"type": "string",
"enum": [
"specific_email"
]
},
"recipientEmail": {
"type": "string"
},
"recipientEmails": {
"type": "array",
"items": {
"type": "string"
}
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"templateVersionId",
"recipient",
"recipientEmail",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email"
]
},
"templateVersionId": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"recipient": {
"type": "string",
"enum": [
"specific_email"
]
},
"recipientEmail": {
"type": "string"
},
"recipientEmails": {
"type": "array",
"items": {
"type": "string"
}
},
"next": {
"type": "string",
"nullable": true
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"templateVersionId",
"recipient",
"next"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"type": {
"type": "string",
"enum": [
"email",
"whatsapp"
]
},
"templateVersionId": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"recipient": {
"type": "string",
"enum": [
"invitee",
"host"
]
},
"next": {
"type": "string",
"nullable": true
}
}
}
]
}
}
}
},
"labels": {
"type": "array",
"maxItems": 3,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"color"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"color": {
"type": "string",
"enum": [
"blue",
"cyan",
"green",
"orange",
"pink",
"purple",
"gray"
]
}
}
}
},
"emailContents": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"texts"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"reminder"
]
},
"texts": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"subjectDate",
"title",
"greeting",
"reply",
"appointment",
"meeting",
"reschedule"
],
"properties": {
"subject": {
"type": "string"
},
"subjectDate": {
"type": "string"
},
"title": {
"type": "string"
},
"greeting": {
"type": "string"
},
"reply": {
"type": "string"
},
"appointment": {
"type": "string"
},
"meeting": {
"type": "string"
},
"reschedule": {
"type": "string"
}
}
}
}
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"locales"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"email"
]
},
"locales": {
"type": "object",
"additionalProperties": false,
"required": [
"de",
"en"
],
"properties": {
"de": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
},
"en": {
"type": "object",
"additionalProperties": false,
"required": [
"subject",
"text",
"html"
],
"properties": {
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"html": {
"type": "string"
}
}
}
}
}
}
}
]
}
},
"publishedVersionId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"nullable": true
},
"status": {
"type": "string",
"enum": [
"draft",
"published"
]
},
"isDefault": {
"type": "boolean"
},
"usedByCount": {
"type": "integer"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"revision": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
}
}
}
},
"400": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"401": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"403": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"404": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"409": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"410": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"413": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"415": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"422": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"429": {
"description": "Rate limit exceeded. Retry after the number of seconds in Retry-After.",
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
}
},
"RateLimit-Limit": {
"schema": {
"type": "integer",
"minimum": 1
}
},
"RateLimit-Remaining": {
"schema": {
"type": "integer",
"minimum": 0
}
},
"RateLimit-Reset": {
"schema": {
"type": "integer",
"minimum": 1
}
}
},
"content": {
"application/json": {
"schema": {
"description": "Rate limit exceeded. Retry after the number of seconds in Retry-After.",
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"enum": [
"rate_limited"
]
},
"message": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"500": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
},
"503": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"error",
"request_id"
],
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"code",
"message"
],
"properties": {
"field_id": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"timeZone",
"local"
],
"properties": {
"start": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"end": {
"type": "string",
"format": "date-time",
"pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
},
"timeZone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"local": {
"type": "object",
"additionalProperties": false,
"required": [
"date",
"time",
"offset"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"time": {
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
"offset": {
"type": "string",
"pattern": "^[+-][0-9]{2}:[0-9]{2}$"
}
}
}
}
}
},
"hint": {
"type": "string"
}
}
},
"request_id": {
"type": "string"
}
}
}
}
}
}
}
}