{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-update-collection-payload-schema.json",
  "title": "UpdateCollectionPayload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-collections-api-openapi.yml#/components/schemas/UpdateCollectionPayload",
  "properties": {
    "name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "maxLength": 120
    },
    "description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "maxLength": 2000
    },
    "order": {
      "oneOf": [
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Every dashboard id in the new order"
    },
    "tab_labels": {
      "oneOf": [
        {
          "additionalProperties": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "dashboard id -> short tab label; empty clears it"
    },
    "automation_id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Link an automation for upload-to-refresh"
    },
    "unlink_automation": {
      "type": "boolean",
      "default": false
    }
  },
  "type": "object",
  "required": []
}