v1

latestOpenAPI 3.0.02026-07-222980136.7 KB
Prompts

Update the tags assigned to a prompt

Replaces the prompt's tag assignments with the provided set. A prompt's text and country are immutable — requests attempting to change them are rejected; create a new prompt instead.

patch/v1/workspaces/{id}/prompts/{promptId}

Path parameters

idstring required

Workspace identifier.

Example:01HX7K2YV9D3M8N0G6Q5R4S3T2

Workspace identifier.

promptIdstring required

Prompt identifier.

Example:01HX7K2YV9D3M8N0G6Q5R4S3T2

Prompt identifier.

Request body

tagIdsstring[] required

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

Example request

{
  "tagIds": [
    "01HX7K2YV9D3M8N0G6Q5R4S3T2"
  ]
}

Response

The updated prompt tag assignments.

idstring required
workspaceIdstring required
tagIdsstring[] required

Example response

{
  "id": "01HX7K2YV9D3M8N0G6Q5R4S3T2",
  "workspaceId": "01HX7K2YV9D3M8N0G6Q5R4S3T3",
  "tagIds": []
}