Object types

Create an Object type

Create a new Object type, defining the content model that its Objects will follow. Only title is required; the slug is derived from the title when omitted. Define metafields here so that Objects created in this type can carry the corresponding metadata values.

post/buckets/{slug}/object-types

Request body

titlestring required
singularstring
slugstring

Derived from title when omitted.

singletonboolean
emojistring
optionsobject
localizationboolean
localesstring[]
priority_localestring

Example request

{
  "metafields": [
    {
      "type": "text",
      "media_validation_type": "image"
    }
  ]
}

Response

The created Object type.

Example response

{
  "object_type": {
    "metafields": [
      {
        "type": "text",
        "media_validation_type": "image"
      }
    ]
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.