save_object_type
Omit objectTypeId to create. Pass an existing uuid or slug to update, or a new uuid to create with that id. Requires create_update_delete_object_types permission.
save_object_type · Group: objects
Omit objectTypeId to create. Pass an existing uuid or slug to update, or a new uuid to create with that id. Requires create_update_delete_object_types permission.
Inputs
| Field | Required | Notes |
|---|---|---|
websiteId | required | |
objectTypeId | optional | |
label | optional | |
kind | optional | |
fieldSchema | optional | |
slug | optional | |
detailRouteParam | optional | |
identifierFieldKey | optional | |
overlaysByLocale | optional | |
dryRun | optional |
Maps to
POST /api/v1/{locale}/{websiteId}/objects→ APIPATCH /api/v1/{locale}/{websiteId}/objects/{objectTypeId}/definition→ APIPUT /api/v1/{locale}/{websiteId}/objects/{objectTypeId}/locale-overlays→ API