Docs

Pull Resource Type

POST /resourceTypes/pull

POST/resourceTypes/pull

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.
Organization tokenx-Organization-TokenOptionalSet the `orgToken` variable to a token from the Organization API's **Authorize Organization**. It must be for the event's owning organization.

Copies an org resource type onto the event as an editable, correlated copy, with its dependency graph: attributes, sections, variants, modifiers, owned rate cards, rule sets, states, block types, and for a composite its component target types.

Requires ResourceTypeDatabase.Read on the event's owning organization.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Request Body

FieldTypeRequiredDescription
orgResourceTypeIdGuidRequiredThe org resource type.

Response

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

Error Codes

HTTP StatusDescription
403Org token for another organization, or missing ResourceTypeDatabase.Read.
404Org resource type not found.