---
title: "Updates app's APNs info from a `.p12` file"
method: POST
path: "/apps/{id}/pkcs12"
tags: ["apps"]
---

# Updates app's APNs info from a `.p12` file

`POST /apps/{id}/pkcs12`

Updates the application's Apple Push Notification service (APNs) information.

## Path parameters

- `id` string, required

## Response `200`

App updated

- AppResponse
  - `_links` object, nullable — A link self-referencing the app that has been created.
  - `accountId` string — The ID of your Ably account.
  - `apnsUseSandboxEndpoint` boolean, nullable — Apple Push Notification service endpoint.
  - `id` string — The application ID.
  - `name` string — The application name.
  - `status` 'enabled' | 'disabled' — The application status. Disabled applications will not accept new connections and will return an error to all clients.
  - `tlsOnly` boolean, nullable — Enforce TLS for all connections. This setting overrides any channel setting.

## Other responses

- `400` — Bad request
- `401` — Authentication failed
- `404` — App not found
- `500` — Internal server error

---

[API](https://skmtc.net/ably/apis/control.md) · [All operations](https://skmtc.net/ably/apis/control/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ably/control/revisions/85e2f4b0deb6/schema)
