/datasets/{dataset_id}/metadata/{metadata_id}Rename a custom metadata field
Updates the name of a custom metadata field in a knowledge base. Supply the new name, which must be unique among the knowledge base's fields and no longer than 255 characters. Use this operation to rename a field without changing its identifier or type.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The new name for the custom metadata field.
One documented failure
invalid_paramMetadata name already exists.
invalid_param
One documented failure
forbiddenDataset api access is not enabled.
forbidden (api access)
One documented failure
not_foundDataset not found.
not_found (knowledge base)
A 400 is returned when name already exists, exceeds 255 characters, or conflicts with a built-in field; a 403 indicates disabled dataset API access, a subscription rate limit, or an API-key scope mismatch; a 404 indicates the knowledge base or metadata field was not found. The dataset_id path parameter must identify an existing knowledge base, and the metadata_id path parameter must identify a field in it. The new name must be unique among the knowledge base's fields and no longer than 255 characters.