{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-contract-update-collection-request-payload-schema.json",
  "title": "Contract.UpdateCollectionRequestPayload",
  "description": "The collection attributes to update. Only the fields you include are changed. A collection's type is set when the collection is created and can't be changed.\n",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-collections-openapi.yml#/components/schemas/Contract.UpdateCollectionRequestPayload",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "New name for the collection. Omit to leave the current name unchanged."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "New description for the collection. Send `null` or an empty string to clear it. Omit to leave the current description unchanged."
    },
    "configuration": {
      "$ref": "#/$defs/Entity.CollectionConfiguration"
    }
  },
  "$defs": {
    "Entity.CollectionConfiguration": {
      "type": "object",
      "description": "Configuration for a `dynamic` collection. Required when creating a `dynamic` collection, and not allowed for a `manual` collection.\n",
      "properties": {
        "expression": {
          "type": "string",
          "description": "The [search expression](search_expressions) that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single **Expression** filter; any filters added to the collection there are combined with it using AND.\n"
        }
      }
    }
  }
}