Docs
Add Resource Type
POST /resourceTypes
POST
/resourceTypesRequired 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 resource type. A new type gets one default section and a hidden base variant. Attributes are not part of this body: place library attributes into the type's sections with the Sections requests.
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 |
|---|---|---|---|
| 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. |
Response
201 Created with the new type's id as a bare Guid.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |
| 404 | Category or rule set not found. |