---
title: "Update the WhatsApp service"
method: POST
path: "/whatsapp/{id}"
tags: ["WhatsApp"]
---

# Update the WhatsApp service

`POST /whatsapp/{id}`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/whatsapp/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/whatsapp/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

Update the WhatsApp service.

## Path parameters

- `id` string, required: The unique ID of the resource.

## Request body

- object
  - `name` string: The name of WhatsApp service.
  - `enabled` boolean: The flag for whether the WhatsApp service is enabled.
  - `phone_number` string: The phone number of WhatsApp service.
  - `phone_number_id` string: The phone number id of WhatsApp service.
  - `token` string: The token of WhatsApp service.

## Response `200`

OK

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
