---
title: "GetPatchCapabilities"
method: POST
path: "/textql.rpc.public.patches.OntologyManagementService/GetPatchCapabilities"
tags: ["OntologyManagementService"]
---

# GetPatchCapabilities

`POST /textql.rpc.public.patches.OntologyManagementService/GetPatchCapabilities`

## Headers

- `Connect-Protocol-Version` 1, required — Define the version of the Connect protocol
- `Connect-Timeout-Ms` number — Define the timeout, in ms

## Request body

- TextqlRpcPublicPatchesGetPatchCapabilitiesRequest
  - `patchId` string

## Response `200`

Success

- TextqlRpcPublicPatchesGetPatchCapabilitiesResponse
  - `capabilities` TextqlRpcPublicPatchesPatchCapabilities — PatchCapabilities describes which patch actions the calling member is permitted to perform. This is a read-only mirror of the authority checks in ApprovePatch and DenyPatch; computing it has no side effects and emits no audit log.
    - `canApprove` boolean
    - `canDeny` boolean
    - `canRestore` boolean
    - `callerApproved` boolean
  - `status` 'PATCH_STATUS_UNKNOWN' | 'PATCH_STATUS_RESERVED' | 'PATCH_STATUS_DRAFT' | 'PATCH_STATUS_OPEN' | 'PATCH_STATUS_APPROVED' | 'PATCH_STATUS_DENIED'

## Other responses

- `default` — Error

---

[API](https://skmtc.net/textql/apis/textql-rpc-platform.md) · [All operations](https://skmtc.net/textql/apis/textql-rpc-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textql/textql-rpc-platform/versions/31ce2b0c4427/schema)
