Docs
Pull Resource Type
POST /resourceTypes/pull
POST
/resourceTypes/pullRequired 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. |
| Organization token | x-Organization-Token | Optional | Set 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
| Field | Type | Required | Description |
|---|---|---|---|
| orgResourceTypeId | Guid | Required | The org resource type. |
Response
201 Created with the event resource type's id as a bare Guid.
Error Codes
| HTTP Status | Description |
|---|---|
| 403 | Org token for another organization, or missing ResourceTypeDatabase.Read. |
| 404 | Org resource type not found. |