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

Add Labels To Prompt Revision

Add labels to a prompt revision.

Removes these labels from other revisions and adds them to the specified revision.

Returns 204 No Content on success.

POST
/v1/prompt-revisions/{revision_id}/set-labels
/v1/prompt-revisions/{revision_id}/set-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 label

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

Successful Response