Docs
Create Schedule Block Type
POST /schedule-block-types
POST
/schedule-block-typesRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **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
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Internal name. |
| label | string | Optional | Display label. |
| icon | string | Optional | Icon identifier. |
| color | string | Optional | Color token. |
| defaultResourceStateId | Guid? | Optional | The 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 Status | Description |
|---|---|
| 400 | Invalid arguments. |