Cosmic · Schema

ObjectTypeUpdate

Only the properties sent are changed. Sending `metafields` replaces the entire array.

CompanyHeadless CMSContent ManagementContent APIAI AgentsMCPWebhookJAMstack

Properties

Name Type Description
title string
singular string
slug string
singleton boolean
emoji string
metafields array
options object
localization boolean
locales array
priority_locale string
View JSON Schema on GitHub

JSON Schema

cosmicjs-com-object-type-update-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cosmicjs-com/json-schema/cosmicjs-com-object-type-update-schema.json",
  "title": "ObjectTypeUpdate",
  "description": "Only the properties sent are changed. Sending `metafields` replaces the entire array.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cosmicjs-com-openapi.yml#/components/schemas/ObjectTypeUpdate",
  "type": "object",
  "minProperties": 1,
  "properties": {
    "title": {
      "type": "string"
    },
    "singular": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "singleton": {
      "type": "boolean"
    },
    "emoji": {
      "type": "string"
    },
    "metafields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Metafield"
      }
    },
    "options": {
      "type": "object",
      "additionalProperties": true
    },
    "localization": {
      "type": "boolean"
    },
    "locales": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "priority_locale": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Metafield": {
      "type": "object",
      "description": "One field in an Object type's content model.",
      "required": [
        "title",
        "key",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Assigned by Cosmic. Omit when creating."
        },
        "title": {
          "type": "string",
          "description": "Label shown to editors in the dashboard."
        },
        "key": {
          "type": "string",
          "description": "The key used in an Object's `metadata`."
        },
        "type": {
          "type": "string",
          "description": "The Metafield type. See the Metafields documentation for the full list and the value shape each one expects."
        },
        "value": {
          "description": "Default value for the Metafield."
        },
        "helptext": {
          "type": "string",
          "description": "Guidance shown to editors beneath the field."
        },
        "required": {
          "type": "boolean",
          "description": "Whether Objects in this type must supply a value."
        },
        "media_validation_type": {
          "type": "string",
          "description": "Restricts uploads for File Metafields."
        },
        "repeater_fields": {
          "type": "array",
          "description": "Child Metafields, for `repeater` types.",
          "items": {
            "$ref": "#/$defs/Metafield"
          }
        },
        "options": {
          "type": "array",
          "description": "Choices for select, radio, and checkbox types.",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cosmicjs-com-object-type-update"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.