Skip to main content
PUT
Update call settings

Authorizations

Authorization
string
header
required

Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.

Path Parameters

session
string
required

Identifier of the connected Polymorfa session.

Value constraints

Required string length: 1 - 128

Body

application/json
callsEnabled
boolean

Set to false to refuse new and incoming calls on the session; true allows them again.

conferenceMode
boolean

Set to true so that the participants you connect to a call hear each other as well as the WhatsApp party, or false so that each hears only the WhatsApp party.

inboundRoute
enum<string>

Specifies inbound route for this management platform access update call settings request.

Allowed values

Available options:
clients,
sip_trunk
sipTrunkId
string<uuid> | null

The SIP trunk for sip_trunk: a trunk in the session's project whose direction is outbound or both. Required when switching the route to sip_trunk; omit it to keep the stored trunk. With clients send null or omit it: a trunk ID is refused, and clients clears the stored trunk.

Accepted alternatives

Value constraints

sipClaim
boolean

Whether an answer from the SIP trunk claims the call.

hostCloudApiCalls
boolean

Set to true to have Polymorfa Calls answer the session's Cloud API calls instead of your Graph API integration. Applies to calls that arrive after the change.

expectedRevision
integer

Apply the update only if the settings still have this revision (0 for a session using the defaults). Otherwise the update fails with 409 state_conflict.

Value constraints

Required range: x >= 0

Response

Call settings saved. Audio settings apply to a call the next time a participant answers or connects to it, including calls in progress. Routing settings apply to calls that arrive after the change.

success
enum<boolean>
required

Whether the request succeeded.

Allowed values

Available options:
true
data
object
required

Structured data carried by this object.