Introducing Confident Voice: Watch the Launch Video Now

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.

DELETE/v2/prompts/{promptId}/labels/{label}
curl -X DELETE "https://api.confident-ai.com/v2/prompts/{promptId}/labels/{label}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "label": "production",
    "version": "00.00.02"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

  • labelstringRequired

    A 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.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A label of a prompt and the version it points at.

    Show 2 propertiesHide 2 properties
    • labelstring

      The label, unique within the prompt.

    • versionstring

      The version number the label points at.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI