Voice Agent
Update Agent Tags
Change settings that apply to all versions of an agent, such as its environment tags.
PATCH
JavaScript
Works for voice and chat agents. To learn how tags route calls, see environment tags.
Tags you leave out stay as they are, and so do the fields you leave out of a tag. For example,
{"tags": {"prod": {"version": 3}}} moves prod to version 3 and keeps its dynamic variables and every other tag.
Set a tag to null to delete it. Deleting a tag also removes it from every phone number that uses it.
To avoid overwriting a change made after you read the agent, send the ETag from your last response in the If-Match header. If the agent changed since then, the request returns 412 and changes nothing.Authorizations
Headers
Path Parameters
Body
application/json
Environment tags to add, change, or delete, keyed by tag name. Set a tag to an object to add or change it, or to null to delete it. Tags you leave out stay as they are. The prod and staging tags cannot be deleted. An agent can have up to 10 tags. Tag names must be 1-20 characters, start with a lowercase letter, use only lowercase letters, digits, underscores, or hyphens, and cannot be "latest", "latest_published", or "v" followed only by digits, such as "v2".
Example:
Response
Agent settings updated successfully.
JavaScript

