Docs

Add Resource Type

POST /resourceTypes

POST/resourceTypes

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **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

FieldTypeRequiredDescription
typestringRequired`Asset` or `Crew`.
namestringRequiredInternal name.
labelstringRequiredDisplay label.
iconstringOptionalIcon identifier.
colorstringOptionalColor token.
trackingTypestringOptional`Serialized`, `Pooled`, `Expendable` or `Composite`. Omitted defaults to `Serialized` for an Asset type; always null for Crew.
defaultOwnerGuid?OptionalDefault owning department for needs of this type.
categoryIdGuidRequiredAn existing resource category.
isDockableboolOptionalType flag.
isScheduledboolOptionalWhether needs of this type carry schedule blocks.
hasProviderboolOptionalType flag.
hasPayorboolOptionalType flag.
lineItemLabelstringOptionalLabel used on order line items.
defaultRuleSetIdsGuid[]OptionalDefault rule sets for resources of this type.

Response

201 Created with the new type's id as a bare Guid.

Error Codes

HTTP StatusDescription
400Invalid arguments.
404Category or rule set not found.