Docs

Create Schedule Block Type

POST /schedule-block-types

POST/schedule-block-types

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Creates a schedule block type.

Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Request Body

FieldTypeRequiredDescription
namestringRequiredInternal name.
labelstringOptionalDisplay label.
iconstringOptionalIcon identifier.
colorstringOptionalColor token.
defaultResourceStateIdGuid?OptionalThe state a block of this type puts its resource into by default.

Response

201 Created with the new type's id as a bare Guid.

Error Codes

HTTP StatusDescription
400Invalid arguments.