Docs

Update Resource Type

PUT /resourceTypes/{resourceTypeId}

PUT/resourceTypes/{resourceTypeId}

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.

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

FieldTypeRequiredDescription
resourceTypeIdGuidRequiredThe resource type.

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.
clearDefaultOwnerboolOptionalTrue clears `defaultOwner`. Omitting `defaultOwner` leaves it as stored.
lineItemBodyGuid[]OptionalAttribute 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 StatusDescription
400Invalid arguments or a refused tracking-type change.
404Type, category or rule set not found.