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. |
| Organization token | x-Organization-Token | Optional | Run **Authorize Organization** in the Authorization folder. |
Creates a schedule block type.
Requires
ResourceTypeDatabase.Edit permission.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. |