{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-reorder-metadata-fields-request-schema.json",
  "title": "reorder_metadata_fields_request",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-structured-metadata-openapi.yml#/components/schemas/reorder_metadata_fields_request",
  "type": "object",
  "properties": {
    "order_by": {
      "type": "string",
      "enum": [
        "label",
        "created_at",
        "external_id"
      ],
      "description": "The field to order by."
    },
    "direction": {
      "$ref": "#/$defs/direction_enum",
      "description": "The direction to order by."
    }
  },
  "required": [
    "order_by"
  ],
  "$defs": {
    "direction_enum": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Sort direction."
    }
  }
}