Skip to main content
PATCH
Update the tags assigned to a prompt

Authorizations

Authorization
string
header
required

Provide your API key as a Bearer token: Authorization: Bearer YOUR_API_KEY.

Path Parameters

id
string
required

Workspace identifier.

Minimum string length: 1
Example:

"01HX7K2YV9D3M8N0G6Q5R4S3T2"

promptId
string
required

Prompt identifier.

Minimum string length: 1
Example:

"01HX7K2YV9D3M8N0G6Q5R4S3T2"

Body

application/json
tagIds
string[]
required

Full replacement set of tag IDs to assign to the prompt. Pass [] to remove all tags.

Minimum string length: 1
{key}
unknown

Response

The updated prompt tag assignments.

id
string
required
Minimum string length: 1
Example:

"01HX7K2YV9D3M8N0G6Q5R4S3T2"

workspaceId
string
required
tagIds
string[]
required