Cloudinary · Schema

metadata_rule_create

Asset ManagementDigital Asset ManagementImage ProcessingImage TransformationMediaSoftware-as-a-ServiceVideo Processing

Properties

Name Type Description
metadata_field_id string The ID of the metadata field this rule applies to.
name string A descriptive name for the metadata rule.
condition object The condition that triggers this rule. Ensure it adheres to the metadata rule condition schema.
result object
state object The state of the rule.
position integer The position/order of this rule relative to other rules.
View JSON Schema on GitHub

JSON Schema

cloudinary-metadata-rule-create-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-metadata-rule-create-schema.json",
  "title": "metadata_rule_create",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-structured-metadata-openapi.yml#/components/schemas/metadata_rule_create",
  "allOf": [
    {
      "$ref": "#/$defs/metadata_rule_base"
    }
  ],
  "required": [
    "metadata_field_id",
    "name",
    "condition",
    "result"
  ],
  "$defs": {
    "metadata_rule_activate_values": {
      "description": "Restricts which datasource option ids are active. Either the string \"all\" (activate every option) or an object listing the external ids to activate.\n",
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "all"
          ]
        },
        {
          "type": "object",
          "required": [
            "external_ids"
          ],
          "properties": {
            "external_ids": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              },
              "description": "The datasource external ids to activate."
            },
            "mode": {
              "type": "string",
              "enum": [
                "override",
                "append"
              ],
              "description": "Whether to override the current active set or append to it. Defaults to append."
            }
          }
        }
      ]
    },
    "metadata_rule_apply_value": {
      "type": "object",
      "description": "Applies a specific value to the metadata field when the rule condition is met.",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "The value to apply to the metadata field."
        },
        "mode": {
          "type": "string",
          "enum": [
            "default",
            "override",
            "append"
          ],
          "description": "How to apply the value. `default` sets it only when no value is already inferred; `override` always replaces any inferred value; `append` adds to an existing array value.\n"
        }
      }
    },
    "metadata_rule_base": {
      "type": "object",
      "properties": {
        "metadata_field_id": {
          "type": "string",
          "description": "The ID of the metadata field this rule applies to."
        },
        "name": {
          "type": "string",
          "description": "A descriptive name for the metadata rule."
        },
        "condition": {
          "type": "object",
          "description": "The condition that triggers this rule. Ensure it adheres to the metadata rule condition schema."
        },
        "result": {
          "$ref": "#/$defs/metadata_rule_result"
        },
        "state": {
          "$ref": "#/$defs/state_enum",
          "description": "The state of the rule."
        },
        "position": {
          "type": "integer",
          "description": "The position/order of this rule relative to other rules."
        }
      }
    },
    "metadata_rule_result": {
      "type": "object",
      "description": "The result to apply when the rule's condition is met. At least one property must be set.",
      "minProperties": 1,
      "properties": {
        "apply_value": {
          "$ref": "#/$defs/metadata_rule_apply_value"
        },
        "disable": {
          "type": "boolean",
          "description": "When true, disables the field in the UI (sets default_disabled). Preferred over the legacy enable action."
        },
        "enable": {
          "type": "boolean",
          "deprecated": true,
          "description": "When true, enables the field in the UI (clears default_disabled). Deprecated — prefer using disable with value false instead."
        },
        "hide": {
          "type": "boolean",
          "description": "When true, hides the field in the UI (sets hidden_ui)."
        },
        "activate_values": {
          "$ref": "#/$defs/metadata_rule_activate_values"
        },
        "set_mandatory": {
          "type": "boolean",
          "description": "When true, makes the field mandatory; when false, makes it optional."
        }
      }
    },
    "state_enum": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ],
      "description": "The active or inactive state."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cloudinary-metadata-rule-create"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.