Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
Description

Delete Prompt Definitions

Delete prompt definitions with either a specific ID or all for a project.

Either prompt_id or project_id must be provided. If prompt_id is provided, deletes only that prompt definition. If project_id is provided, deletes all prompt definitions for that project. Returns 204 No Content on success.

DELETE
/v1/prompt-definitions
/v1/prompt-definitions

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Query Parameters

project_idProject Id

Delete all prompt definitions for this project

prompt_idPrompt Id

Delete a specific prompt definition by ID

curl -X DELETE "https://api.patronus.ai/v1/prompt-definitions?project_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&prompt_id=497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "X-API-KEY: <token>"

Successful Response