Launch Week 02 wrapped — explore all five launches

Delete Branch

DELETEhttps://api.confident-ai.com/v1/prompts/{alias}/branches/{name}

Deletes an existing branch from your prompt on Confident AI.

DELETE/v1/prompts/{alias}/branches/{name}
curl -X DELETE "https://api.confident-ai.com/v1/prompts/{alias}/branches/{name}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "br_123456"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • aliasstringRequired

    The unique alias of the prompt.

  • namestringRequired

    The unique name of the branch you're trying to update.

Response

  • successboolean

    This is true if the prompt branch was successfully deleted.

  • dataobject

    Show 1 propertyHide 1 property
    • idstring

      This is the ID of the deleted prompt branch.

  • deprecatedboolean

    This is true if this endpoint is deprecated.

Built byConfident AI