Skip to main content

SetAgentPrimaryDID sets a DID as the agent's primary caller ID.

PUT 

/api/v1/voice/agents/:agentId/primary-did

The primary DID is used as default caller ID for outbound calls. Only one DID can be primary at a time.

Parameters

  • agent_id: Required, agent to update
  • did_id: Required, DID to set as primary

Prerequisites

  • DID must already be assigned to the agent

Errors

  • NOT_FOUND: Agent or DID not found
  • FAILED_PRECONDITION: DID not assigned to this agent
  • PERMISSION_DENIED: Caller lacks voice:agent:write permission

Request

Responses

A successful response.