cURL
curl --request POST \ --url https://api.promptmetrics.dev/tags/assign \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "template_id": "64template123" } '
{ "responseData": { "data": { "assigned": [ { "_id": "<string>", "name": "<string>", "workspace_id": "<string>", "status": "ACTIVE", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ], "not_found": [ "<string>" ], "total_assigned": 123 } }, "message": "<string>" }
Assign multiple tags to a template. Existing assignments are replaced.
SDK API key in format: pm_
Array of tag IDs. Empty array removes all tags.
Tags assigned
Show child attributes