Update Phone Number Configuration
Update the call flow configuration for a phone number, including agent assignment, recording, and office hours.
PUT
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
phoneNumberIdstringrequiredThe unique identifier of the phone number.
Request Body
agentIdstringThe call agent ID to assign to this phone number.
maxCallDurationnumberMaximum call duration in seconds.
recordingEnabledbooleanWhether to enable call recording.
officeHoursobjectOffice hours configuration.
transferCallerIdModestringCaller ID mode for transfers. Options: "agent", "customer".
metadataTagsarrayArray of metadata tag strings to assign.
labelstringA label for the phone number.
Response Fields
successbooleanWhether the update was successful.
{
"success": true
}