Docs
Update Resource Type
PUT /resourceTypes/{resourceTypeId}
PUT
/resourceTypes/{resourceTypeId}Required 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. |
Updates a resource type's fields. Sections, placements, rate cards and components have their own routes. defaultRuleSetIds is reconciled to the list sent, and resources inheriting the defaults are re-evaluated.
Event scoping: This endpoint does not include
{eventId} in the URL. The event is determined automatically from your x-Event-Token.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The resource type. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| type | string | Required | `Asset` or `Crew`. |
| name | string | Required | Internal name. |
| label | string | Required | Display label. |
| icon | string | Optional | Icon identifier. |
| color | string | Optional | Color token. |
| trackingType | string | Optional | `Serialized`, `Pooled`, `Expendable` or `Composite`. Omitted defaults to `Serialized` for an Asset type; always null for Crew. |
| defaultOwner | Guid? | Optional | Default owning department for needs of this type. |
| categoryId | Guid | Required | An existing resource category. |
| isDockable | bool | Optional | Type flag. |
| isScheduled | bool | Optional | Whether needs of this type carry schedule blocks. |
| hasProvider | bool | Optional | Type flag. |
| hasPayor | bool | Optional | Type flag. |
| lineItemLabel | string | Optional | Label used on order line items. |
| defaultRuleSetIds | Guid[] | Optional | Default rule sets for resources of this type. |
| clearDefaultOwner | bool | Optional | True clears `defaultOwner`. Omitting `defaultOwner` leaves it as stored. |
| lineItemBody | Guid[] | Optional | Attribute ids shown in a line item's body. |
Omitting trackingType leaves it as stored. Changing it is refused once the change would break existing data (the message says why).
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments or a refused tracking-type change. |
| 404 | Type, category or rule set not found. |