---
title: "Unauthorize Account From Invoking Function Version"
method: PATCH
path: "/v2/nvcf/authorizations/functions/{functionId}/versions/{functionVersionId}/remove"
tags: ["Authorized Accounts"]
---

# Unauthorize Account From Invoking Function Version

`PATCH /v2/nvcf/authorizations/functions/{functionId}/versions/{functionVersionId}/remove`

Removes the specified NVIDIA Cloud Account from the set of authorized accounts  that are directly associated with specified function version. If the specified  function version does not have any of its own(not inherited) authorized  accounts, it results in a response with status 404. Also, if the specified  authorized account is not in the set of existing authorized parties that are  directly associated with the specified function version, it results in a  response with status code 400. If the specified function version is public,  then Account Admin cannot perform this operation. Access to this functionality mandates the inclusion of a bearer token with the  'authorize_clients' scope in the HTTP Authorization header

## Path parameters

- `functionId` string, uuid, required
- `functionVersionId` string, uuid, required

## Request body

- PatchAuthorizedPartyRequest — Request payload to associate/disassociate authorized party with function
  - `authorizedParty` AuthorizedPartyDto, required — Data Transfer Object(DTO) representing an authorized party.
    - `clientId` string — Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
    - `ncaId` string, required — NVIDIA Cloud Account authorized to invoke the function

## Response `200`

OK

- AuthorizedPartiesResponse — Parties authorized to invoke function
  - `function` AuthorizedPartiesByFunctionDto, required — Data Transfer Object(DTO) representing a function with authorized accounts
    - `id` string, uuid, required — Function id
    - `ncaId` string, required — NVIDIA Cloud Account Id
    - `versionId` string, uuid — Function version id
    - `authorizedParties` AuthorizedPartyDto[] — Authorized parties allowed to invoke the function
      - `clientId` string — Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
      - `ncaId` string, required — NVIDIA Cloud Account authorized to invoke the function

---

[API](https://skmtc.dev/brevdev/apis/cloud-functions.md) · [All operations](https://skmtc.dev/brevdev/apis/cloud-functions/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brevdev/cloud-functions/revisions/add37b001ffc/schema)
