---
title: "Updates an app"
method: PATCH
path: "/apps/{id}"
tags: ["apps"]
---

# Updates an app

`PATCH /apps/{id}`

Updates the application with the specified application ID.

## Path parameters

- `id` string, required

## Request body

- AppPatch
  - `apnsCertificate` string, nullable — The Apple Push Notification service certificate.
  - `apnsPrivateKey` string, nullable — The Apple Push Notification service private key.
  - `apnsUseSandboxEndpoint` boolean, nullable — The Apple Push Notification service sandbox endpoint.
  - `fcmKey` string, nullable — The Firebase Cloud Messaging key.
  - `name` string — The name of the application for your reference only.
  - `status` 'enabled' | 'disabled' — The status of the application. Can be `enabled` or `disabled`. Enabled means available to accept inbound connections and all services are available.
  - `tlsOnly` boolean, nullable — Enforce TLS for all connections.

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