---
title: "Update an app push notification"
method: POST
path: "/mobile_push/{id}"
tags: ["Push Notification"]
---

# Update an app push notification

`POST /mobile_push/{id}`

## Request

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

## Path parameters

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

## Request body

- object
  - `app_name` string: Application name.
  - `enabled` boolean: Enabled this notification or not.
  - `mode` 'PRODUCTION' | 'DEVELOPMENT': Connect to Apple/Google development push server or production push server: - `PRODUCTION`: Connect to Apple/Google production push server. - `DEVELOPMENT`: Connect to Apple/Google development push server.
  - `android_service_account` string: The Firebase Cloud Messaging service account JSON file.
  - `ios_certificate` string: Content of this APNs SSL certificate key file.
  - `ios_private_key` string: Content of this APNs SSL private key file.

## 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)
