---
title: "Update voicemail"
method: PATCH
path: "/phone_numbers/{phone_number_id}/voicemail"
tags: ["Voicemail"]
---

# Update voicemail

`PATCH /phone_numbers/{phone_number_id}/voicemail`

Update voicemail settings for a phone number

## Request body

- VoicemailRequest
  - `pin` string — The pin used for voicemail
  - `enabled` boolean — Whether voicemail is enabled.

## Response `200`

Successful response

- object
  - `data` VoicemailPrefResponse
    - `enabled` boolean — Whether voicemail is enabled.
    - `pin` string — The pin used for the voicemail.

## Other responses

- `401` — Unauthorized
- `404` — Resource not found
- `422` — Bad request

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/8f5f4e537994/schema)
