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

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