Skip to main content
PATCH
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

phone_number_id
string
required

The ID of the phone number.

Body

application/json

Details to update

pin
string

The pin used for voicemail

Example:

"1234"

enabled
boolean

Whether voicemail is enabled.

Example:

true

greeting
object

Controls the greeting a caller hears before leaving a voicemail. Set mode to default to play the standard system greeting, or to custom_greeting to play your own audio. When mode is custom_greeting, media_name is required and must reference an audio file already uploaded to your account through the Media Storage API.

Response

Successful response

data
object
Example: