Our docs got a refresh! Check out the new content and improved navigation. For detailed API reference see our Python SDK docs and TypeScript SDK.
Description
API referencePrompts

Remove Labels From Prompt Revision

Remove labels from a prompt revision.

Returns 204 No Content on success.

POST
/v1/prompt-revisions/{revision_id}/remove-labels
/v1/prompt-revisions/{revision_id}/remove-labels

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Request Body

application/jsonRequired

labels
Required
Labels

Path Parameters

revision_id
Required
Revision Id

ID of the prompt revision to remove labels from

Format: "uuid"
curl -X POST "https://api.patronus.ai/v1/prompt-revisions/497f6eca-6276-4993-bfeb-53cbbbba6f08/remove-labels" \
  -H "X-API-KEY: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "labels": [
      "string"
    ]
  }'

Successful Response