Docs
Update Schedule Block Type
PUT /schedule-block-types/{scheduleBlockTypeId}
PUT
/schedule-block-types/{scheduleBlockTypeId}Required 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. |
Updates a schedule block type.
Requires
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| scheduleBlockTypeId | Guid | Required | The block type. |
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. |
| isArchived | bool | Optional | Archive or restore. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |
| 404 | Block type not found. |