Introducing Confident Voice: Watch the Launch Video Now

Delete Prompt Action

(v2)

DELETE

Permanently deletes a prompt action, and its evaluation when no other action uses it.

DELETE/v2/prompts/{promptId}/prompt-actions/{promptActionId}
curl -X DELETE "https://api.confident-ai.com/v2/prompts/{promptId}/prompt-actions/{promptActionId}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<PROMPT-ACTION-ID>"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

  • promptActionIdstringRequired

    The unique id of the prompt action.

Response

Delete Prompt Action succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A reference to a prompt action.

    Show 1 propertyHide 1 property
    • idstring

      This is the unique id of the prompt action.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI