Order the datasource values of a metadata field
Reorders the allowed values (the datasource) of a metadata field according to the given field and direction. This is the backward-compatible variant of the order endpoint.
Basic authentication using Cloudinary API Key and API Secret.
In: header
Path Parameters
The cloud name of your product environment.
The external ID of the metadata field whose datasource is reordered.
Request Body
application/json
The ordering criteria for the datasource values.
The ordering criteria for a metadata field's datasource values.
The datasource value attribute to sort by (for example, "value" or "external_id").
The sort direction for the datasource values. Default is "asc".
Value in
- "asc"
- "desc"
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1_1/my_cloud/metadata_fields/string/datasource/order" \ -H "Content-Type: application/json" \ -d '{ "order_by": "string" }'{ "values": [ { "external_id": "string", "value": "string" } ]}Search datasource values in a metadata field POST
Performs a search within a specific metadata field's datasource to find matching values, with support for exact or partial matches.
Order the datasource values of a metadata field PUT
Reorders the allowed values (the datasource) of a metadata field according to the given field and direction.