cURL
curl --request POST \ --url https://server.promptwatch.com/api/v2/prompts/{id}/tags \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "tags": [ "<string>" ] } '
200
Example
{ "attached": 2, "tags": [ { "id": "6ba7b820-9dad-11d1-80b4-00c04fd430c8", "name": "Q2 campaign" }, { "id": "6ba7b833-9dad-11d1-80b4-00c04fd430c8", "name": "Enterprise" } ] }
Attach tags to a prompt (creates tags if they don’t exist)
API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.
Prompt ID
Array of tag names to attach
1
Default Response
Number of tags attached to the prompt
Array of all tags now attached to the prompt
Show child attributes