{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/directusio/json-schema/directusio-post-collections-request-schema.json",
  "title": "PostCollectionsRequest",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/directusio-api-openapi-generated.yml#/components/schemas/PostCollectionsRequest",
  "type": "object",
  "properties": {
    "collection": {
      "type": "string",
      "description": "Unique name of the collection."
    },
    "fields": {
      "type": "array",
      "description": "The fields contained in this collection."
    },
    "icon": {
      "type": "string",
      "description": "Name of a Google Material Design Icon that's assigned to this collection."
    },
    "note": {
      "type": "string",
      "description": "A note describing the collection."
    },
    "display_template": {
      "type": "string",
      "description": "Text representation of how items from this collection are shown across the system."
    },
    "hidden": {
      "type": "boolean",
      "description": "Whether or not the collection is hidden from the navigation in the admin app."
    },
    "singleton": {
      "type": "boolean",
      "description": "Whether or not the collection is treated as a single object."
    },
    "translation": {
      "type": "string",
      "description": "Key value pairs of how to show this collection's name in different languages in the admin app."
    },
    "versioning": {
      "type": "boolean",
      "description": "Whether or not Content Versioning is enabled for this collection."
    },
    "archive_field": {
      "type": "string",
      "description": "What field holds the archive value."
    },
    "archive_app_filter": {
      "type": "string",
      "description": "What value to use for \"archived\" items."
    },
    "archive_value": {
      "type": "string",
      "description": "What value to use to \"unarchive\" items."
    },
    "unarchive_value": {
      "type": "string",
      "description": "Whether or not to show the \"archived\" filter."
    },
    "sort_field": {
      "type": "string",
      "description": "The sort field in the collection."
    }
  },
  "required": [
    "collection"
  ]
}