---
title: "Enable or disable a Custom OAuth App, or declare its already-revoked answer"
method: PATCH
path: "/v1/oauth-apps/{id}"
tags: ["oauth-apps"]
---

# Enable or disable a Custom OAuth App, or declare its already-revoked answer

`PATCH /v1/oauth-apps/{id}`

## Request

- Base URL: `https://api.typenode.ai`
- URL: `https://api.typenode.ai/v1/oauth-apps/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- UpdateOAuthApp
  - `already_revoked_answer` object, nullable
    - `error` string, required
    - `status` integer, required
  - `is_enabled` boolean

## Response `200`

A disabled app mints no tokens: every credential that uses it stops refreshing until it is enabled again. The credentials themselves are untouched. The already-revoked answer applies to every credential deleted afterwards, including credentials created before it was declared.

- OAuthAppUpdateResult
  - `already_revoked_answer` object, nullable, required
    - `error` string, required
    - `status` integer, required
  - `id` string, required
  - `is_enabled` boolean, required

## Other responses

- `401`: Authentication required.
- `default`: An error occurred (RFC 9457 problem+json).

## Changes

- **2026-10-20** `9b943024aa98`: 4 info
  - api operation id `oauth-apps-set-enabled` removed and replaced with `oauth-apps-update`
  - added the new optional request property `already_revoked_answer`
  - the request property `is_enabled` became optional
  - added the required property `already_revoked_answer` to the response with the `200` status

[Operation history](https://skmtc.dev/typenode/apis/typenode-management-api/changes/v1/oauth-apps/:id/patch.md)

---

[API](https://skmtc.dev/typenode/apis/typenode-management-api.md) · [All operations](https://skmtc.dev/typenode/apis/typenode-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/typenode/apis/typenode-management-api/revisions/9b943024aa98?raw)
