Cosmic · JSON-LD Context

Cosmicjs Com Context

JSON-LD context defining the semantic vocabulary for Cosmicjs Com from Cosmic.

26 Classes 62 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/
cosmicjs: https://cosmicjs.com/schema#

Classes

Error StatusResponse MessageResponse Metafield Object ObjectCreate ObjectUpdate ObjectResponse ObjectListResponse ObjectType ObjectTypeCreate ObjectTypeUpdate ObjectTypeResponse ObjectTypeListResponse Revision RevisionCreate RevisionResponse RevisionListResponse Media MediaUpdate MediaResponse MediaListResponse BlocksResponse BatchOperation BatchRequest BatchResponse

Properties

Property Type Container
status integer
message string
documentation reference
hints list
details list
region string
id string
title string
key string
type string
value
helptext string
required boolean
media_validation_type string
repeater_fields list
options list
slug string
content string
metadata reference
bucket string
thumbnail string
locale string
created_at dateTime
created_by string
modified_at dateTime
modified_by string
published_at dateTime
publish_at string
unpublish_at string
assigned_to string
assigned_by string
assigned_at dateTime
trigger_webhook boolean
object reference
objects list
total integer
limit integer
singular string
singleton boolean
emoji string
metafields list
localization boolean
locales list
priority_locale string
object_type reference
object_types list
object_id string
revision reference
revisions list
name string
original_name string
size integer
folder string
alt_text string
width integer
height integer
url reference
imgix_url reference
media reference
blocks list
method string
operations list

JSON-LD Document

Raw ↑
{
  "@context": {
    "@vocab": "https://cosmicjs.com/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "cosmicjs": "https://cosmicjs.com/schema#",
    "Error": "cosmicjs:Error",
    "status": {
      "@id": "cosmicjs:status",
      "@type": "xsd:integer"
    },
    "message": {
      "@id": "cosmicjs:message",
      "@type": "xsd:string"
    },
    "documentation": {
      "@id": "cosmicjs:documentation",
      "@type": "@id"
    },
    "hints": {
      "@id": "cosmicjs:hints",
      "@container": "@list"
    },
    "details": {
      "@id": "cosmicjs:details",
      "@container": "@list"
    },
    "StatusResponse": "cosmicjs:StatusResponse",
    "region": {
      "@id": "cosmicjs:region",
      "@type": "xsd:string"
    },
    "MessageResponse": "cosmicjs:MessageResponse",
    "Metafield": "cosmicjs:Metafield",
    "id": {
      "@id": "cosmicjs:id",
      "@type": "xsd:string"
    },
    "title": {
      "@id": "cosmicjs:title",
      "@type": "xsd:string"
    },
    "key": {
      "@id": "cosmicjs:key",
      "@type": "xsd:string"
    },
    "type": {
      "@id": "cosmicjs:type",
      "@type": "xsd:string"
    },
    "value": {
      "@id": "cosmicjs:value"
    },
    "helptext": {
      "@id": "cosmicjs:helptext",
      "@type": "xsd:string"
    },
    "required": {
      "@id": "cosmicjs:required",
      "@type": "xsd:boolean"
    },
    "media_validation_type": {
      "@id": "cosmicjs:media_validation_type",
      "@type": "xsd:string"
    },
    "repeater_fields": {
      "@id": "cosmicjs:repeater_fields",
      "@container": "@list"
    },
    "options": {
      "@id": "cosmicjs:options",
      "@container": "@list"
    },
    "Object": "cosmicjs:Object",
    "slug": {
      "@id": "cosmicjs:slug",
      "@type": "xsd:string"
    },
    "content": {
      "@id": "cosmicjs:content",
      "@type": "xsd:string"
    },
    "metadata": {
      "@id": "cosmicjs:metadata",
      "@type": "@id"
    },
    "bucket": {
      "@id": "cosmicjs:bucket",
      "@type": "xsd:string"
    },
    "thumbnail": {
      "@id": "cosmicjs:thumbnail",
      "@type": "xsd:string"
    },
    "locale": {
      "@id": "cosmicjs:locale",
      "@type": "xsd:string"
    },
    "created_at": {
      "@id": "cosmicjs:created_at",
      "@type": "xsd:dateTime"
    },
    "created_by": {
      "@id": "cosmicjs:created_by",
      "@type": "xsd:string"
    },
    "modified_at": {
      "@id": "cosmicjs:modified_at",
      "@type": "xsd:dateTime"
    },
    "modified_by": {
      "@id": "cosmicjs:modified_by",
      "@type": "xsd:string"
    },
    "published_at": {
      "@id": "cosmicjs:published_at",
      "@type": "xsd:dateTime"
    },
    "publish_at": {
      "@id": "cosmicjs:publish_at",
      "@type": "xsd:string"
    },
    "unpublish_at": {
      "@id": "cosmicjs:unpublish_at",
      "@type": "xsd:string"
    },
    "assigned_to": {
      "@id": "cosmicjs:assigned_to",
      "@type": "xsd:string"
    },
    "assigned_by": {
      "@id": "cosmicjs:assigned_by",
      "@type": "xsd:string"
    },
    "assigned_at": {
      "@id": "cosmicjs:assigned_at",
      "@type": "xsd:dateTime"
    },
    "ObjectCreate": "cosmicjs:ObjectCreate",
    "trigger_webhook": {
      "@id": "cosmicjs:trigger_webhook",
      "@type": "xsd:boolean"
    },
    "ObjectUpdate": "cosmicjs:ObjectUpdate",
    "ObjectResponse": "cosmicjs:ObjectResponse",
    "object": {
      "@id": "cosmicjs:object",
      "@type": "@id"
    },
    "ObjectListResponse": "cosmicjs:ObjectListResponse",
    "objects": {
      "@id": "cosmicjs:objects",
      "@container": "@list"
    },
    "total": {
      "@id": "cosmicjs:total",
      "@type": "xsd:integer"
    },
    "limit": {
      "@id": "cosmicjs:limit",
      "@type": "xsd:integer"
    },
    "ObjectType": "cosmicjs:ObjectType",
    "singular": {
      "@id": "cosmicjs:singular",
      "@type": "xsd:string"
    },
    "singleton": {
      "@id": "cosmicjs:singleton",
      "@type": "xsd:boolean"
    },
    "emoji": {
      "@id": "cosmicjs:emoji",
      "@type": "xsd:string"
    },
    "metafields": {
      "@id": "cosmicjs:metafields",
      "@container": "@list"
    },
    "localization": {
      "@id": "cosmicjs:localization",
      "@type": "xsd:boolean"
    },
    "locales": {
      "@id": "cosmicjs:locales",
      "@container": "@list"
    },
    "priority_locale": {
      "@id": "cosmicjs:priority_locale",
      "@type": "xsd:string"
    },
    "ObjectTypeCreate": "cosmicjs:ObjectTypeCreate",
    "ObjectTypeUpdate": "cosmicjs:ObjectTypeUpdate",
    "ObjectTypeResponse": "cosmicjs:ObjectTypeResponse",
    "object_type": {
      "@id": "cosmicjs:object_type",
      "@type": "@id"
    },
    "ObjectTypeListResponse": "cosmicjs:ObjectTypeListResponse",
    "object_types": {
      "@id": "cosmicjs:object_types",
      "@container": "@list"
    },
    "Revision": "cosmicjs:Revision",
    "object_id": {
      "@id": "cosmicjs:object_id",
      "@type": "xsd:string"
    },
    "RevisionCreate": "cosmicjs:RevisionCreate",
    "RevisionResponse": "cosmicjs:RevisionResponse",
    "revision": {
      "@id": "cosmicjs:revision",
      "@type": "@id"
    },
    "RevisionListResponse": "cosmicjs:RevisionListResponse",
    "revisions": {
      "@id": "cosmicjs:revisions",
      "@container": "@list"
    },
    "Media": "cosmicjs:Media",
    "name": {
      "@id": "cosmicjs:name",
      "@type": "xsd:string"
    },
    "original_name": {
      "@id": "cosmicjs:original_name",
      "@type": "xsd:string"
    },
    "size": {
      "@id": "cosmicjs:size",
      "@type": "xsd:integer"
    },
    "folder": {
      "@id": "cosmicjs:folder",
      "@type": "xsd:string"
    },
    "alt_text": {
      "@id": "cosmicjs:alt_text",
      "@type": "xsd:string"
    },
    "width": {
      "@id": "cosmicjs:width",
      "@type": "xsd:integer"
    },
    "height": {
      "@id": "cosmicjs:height",
      "@type": "xsd:integer"
    },
    "url": {
      "@id": "cosmicjs:url",
      "@type": "@id"
    },
    "imgix_url": {
      "@id": "cosmicjs:imgix_url",
      "@type": "@id"
    },
    "MediaUpdate": "cosmicjs:MediaUpdate",
    "MediaResponse": "cosmicjs:MediaResponse",
    "media": {
      "@id": "cosmicjs:media",
      "@type": "@id"
    },
    "MediaListResponse": "cosmicjs:MediaListResponse",
    "BlocksResponse": "cosmicjs:BlocksResponse",
    "blocks": {
      "@id": "cosmicjs:blocks",
      "@container": "@list"
    },
    "BatchOperation": "cosmicjs:BatchOperation",
    "method": {
      "@id": "cosmicjs:method",
      "@type": "xsd:string"
    },
    "BatchRequest": "cosmicjs:BatchRequest",
    "operations": {
      "@id": "cosmicjs:operations",
      "@container": "@list"
    },
    "BatchResponse": "cosmicjs:BatchResponse"
  },
  "@type": "schema:Dataset",
  "schema:name": "Cosmic API JSON-LD context",
  "schema:description": "A JSON-LD @context for the objects Cosmic's own API contract declares: one class per component schema, one property per declared field, typed from the contract. Derived by script (derive-json-ld.py, 2026-11-04) from openapi/cosmicjs-com-openapi.yml.",
  "dcterms:created": "2026-11-04",
  "dcterms:source": [
    "openapi/cosmicjs-com-openapi.yml"
  ]
}