Docs
Push Resource Type To Org
POST /resourceTypes/{resourceTypeId}/push-to-org
POST
/resourceTypes/{resourceTypeId}/push-to-orgRequired 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. |
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
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The event resource type. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 403 | Org token for another organization, or missing ResourceTypeDatabase.Edit. |
| 404 | Resource type not found on this event. |