# Update a metadata key `POST /api/v1/metadata-keys/{id}` Renames an existing metadata key. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Settings → Write**. ## Path parameters - `id` (integer, required) — ID of the metadata key. ## Body parameters - `key` (string, required) — Unique name, up to 255 characters. Leading and trailing whitespace is removed, and the key is lowercased. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/metadata-keys/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"key":"preferred_locale"}' ``` ## Response **200 OK** Returns the renamed entry. Example with fictional data and selected fields. ```json { "status": "success", "data": { "id": 8, "key": "preferred_locale", "sort_order": 0 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — The key is missing, invalid, or already used.