v1
latestOpenAPI 3.0.12026-07-22120163333.7 KBAgent User
Add tags to an agent
Attaches one or more tags to the specified agent in batch.
Notes:
- tagNames must not be empty; up to 20 entries per call.
- When autoCreate is true, tag names not yet defined on the team are created; when false, unknown tag names cause the call to fail.
- The response envelope carries data = true and errorCode = 0 on success.
post/v1.0/agent/{agentId}/tag/add
Path parameters
agentIdinteger required
User ID of the agent to tag.
Headers
Authorizationstring required
Bearer [access_token]
Content-Typestring required
application/json
Request body
Example request
{
"tagNames": [
"VIP",
"Premium"
],
"autoCreate": true
}Response
Envelope indicating whether the batch add succeeded.
Example response
{
"data": true
}