{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/snyk/main/json-schema/snyk-update-collection-request-schema.json",
  "title": "UpdateCollectionRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snyk-collection-api-openapi.yml#/components/schemas/UpdateCollectionRequest",
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "attributes": {
          "additionalProperties": false,
          "properties": {
            "name": {
              "$ref": "#/$defs/name"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/Types"
        }
      },
      "required": [
        "type",
        "attributes"
      ],
      "type": "object"
    }
  },
  "required": [
    "data"
  ],
  "type": "object",
  "$defs": {
    "Types": {
      "pattern": "^[a-z][a-z0-9]*(_[a-z][a-z0-9]*)*$",
      "type": "string"
    },
    "name": {
      "description": "User-defined name of the collection",
      "maxLength": 255,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9 _\\-\\/:.])+$",
      "type": "string"
    }
  }
}