API Reference
Assign tags to many prompts at once, upserting tag names into the library
Idempotent, sized for CSV imports. Prompts outside the organization and empty tag names are reported in `skipped` instead of failing the request.
X-API-Key<token>
API Key for programmatic access
In: header
Path Parameters
domainId*string
Public UUID of the domain whose tag library is addressed
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/domains/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/assignments/bulk" \ -H "Content-Type: application/json" \ -d '{ "assignments": [ { "promptId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "tagNames": [ "retail", "high priority" ] } ] }'{ "assigned": 120, "created": 118, "tagsCreated": 4, "skipped": [ { "promptId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "tagName": "retail", "reason": "Prompt not found in this organization" } ]}