Docs

Push Resource Type To Org

POST /resourceTypes/{resourceTypeId}/push-to-org

POST/resourceTypes/{resourceTypeId}/push-to-org

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.

Saves an event resource type and its dependency graph back to the org library. A correlated type overwrites its org twin; a local type is promoted (an org twin is created and its id stamped back onto the event copy). Dependencies are reused by correlation or created when absent, never overwritten.

Requires ResourceTypeDatabase.Edit 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.

Path Parameters

FieldTypeRequiredDescription
resourceTypeIdGuidRequiredThe event resource type.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
403Org token for another organization, or missing ResourceTypeDatabase.Edit.
404Resource type not found on this event.