Metadata Fields

Reorder all metadata fields

PUT
/v1_1/{cloud_name}/metadata_fields/order

Changes the display order of all metadata fields based on specified criteria.

Authorization

AuthorizationBasic <token>

Basic authentication using Cloudinary API Key and API Secret.

In: header

Path Parameters

cloud_name*string

The cloud name of your product environment.

Request Body

application/json

The new ordering for metadata fields.

order_by*string

The field to order by.

Value in

  • "label"
  • "created_at"
  • "external_id"
direction?direction_enum

The direction to order by.

Value in

  • "asc"
  • "desc"

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1_1/my_cloud/metadata_fields/order" \  -H "Content-Type: application/json" \  -d '{    "order_by": "label"  }'
{  "metadata_fields": [    {      "type": "string",      "external_id": "string",      "label": "string",      "mandatory": true,      "default_value": "string",      "default_disabled": true,      "validation": {},      "restrictions": {        "readonly_ui": true,        "hidden_ui": true,        "excluded_from_search": true      },      "group": "string",      "datasource": {        "values": [          {            "external_id": "string",            "value": "string",            "position": 0,            "state": "active"          }        ]      },      "allow_dynamic_list_values": true,      "alphabetically_sorted": true    }  ]}