APITags

Set target tags

Replace the full set of tags assigned to a single target.

PUT/tag-assignments/{target_type}/{target_key}

Replace the full set of tags assigned to a single target.

Path Parameters

target_type*string

The kind of entity a tag is assigned to.

Value in

  • "agent_slug"
  • "mcp"
  • "tool"
target_key*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The complete set of tags to assign to a target.

Response Body

application/json

application/json

curl -X PUT "https://example.com/tag-assignments/agent_slug/string" \  -H "Content-Type: application/json" \  -d '{    "tag_ids": [      "f822a538-5d10-4249-89b6-dd557ee5945e"    ]  }'
{  "tag_ids": [    "f822a538-5d10-4249-89b6-dd557ee5945e"  ]}