Delete Prompt Label
(v2)DELETE
Removes label from the prompt and returns the version it pointed at. The version itself is kept. A label referenced by an AI connection cannot be removed.
curl -X DELETE "https://api.confident-ai.com/v2/prompts/{promptId}/labels/{label}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"label": "production",
"version": "00.00.02"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
promptIdstringRequiredThe unique id of the prompt.
labelstringRequiredA label of the prompt, such as
production. A label is unique within the prompt and points at one version at a time.
Response
Delete Prompt Label succeeded.
successbooleanIndicates if the request was successful.
dataobjectA label of a prompt and the version it points at.
Show 2 propertiesHide 2 properties
labelstringThe label, unique within the prompt.
versionstringThe version number the label points at.
deprecatedbooleanIndicates if this endpoint is deprecated.