Create or update chat agent environment tag
PUT/api/v1/chat-agents/:agentId/environment-tags/:tagName
Point a tag at a published version, unassign it (version null), replace its dynamic variables, or create a new tag (create true). Omitted fields keep their current values. Tag variables override the agent's default dynamic variables, so a blank value replaces the default; omit a variable to keep the default. Publishing a version does not move tags; move them here or with environmentTags when publishing.
Request
Responses
- 200
- 400
- 404
- 409
Updated tag and the agent's full tag list.
Invalid tag name, version, or variables; unknown tag without create; or the 10-tag limit.
Agent or version not found.
The version is a draft. Only published versions can be tagged.