---
title: "Update the access to organization resources via fine-grained personal access tokens"
method: POST
path: "/orgs/{org}/personal-access-tokens"
tags: ["orgs"]
---

# Update the access to organization resources via fine-grained personal access tokens

`POST /orgs/{org}/personal-access-tokens`

Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access.

Only GitHub Apps can use this endpoint.

## Path parameters

- `org` string, required

## Request body

- object
  - `action` 'revoke', required — Action to apply to the fine-grained personal access token.
  - `pat_ids` integer[], required — The IDs of the fine-grained personal access tokens.

## Response `202`

Accepted

- object

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
