---
updatedAt: 2026-08-06T09:46:15.000Z
---

# Unauthorize Account From Invoking Function Version

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

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Cloud Functions",
    "termsOfService": "https://www.nvidia.com/en-us/legal_info",
    "contact": {
      "name": "NVIDIA",
      "url": "https://www.nvidia.com/"
    },
    "version": "2.87.3"
  },
  "servers": [
    {
      "url": "https://api.nvcf.nvidia.com",
      "description": "Generated server url"
    }
  ],
  "tags": [
    {
      "name": "Authorized Accounts",
      "description": "Defines endpoints related to associating authorized accounts with a function for  Account Admins. All the endpoints defined in this API require a bearer token with  'authorize_clients' scope in HTTP Authorization header."
    }
  ],
  "paths": {
    "/v2/nvcf/authorizations/functions/{functionId}/versions/{functionVersionId}/remove": {
      "patch": {
        "tags": [
          "Authorized Accounts"
        ],
        "summary": "Unauthorize Account From Invoking Function Version",
        "description": "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 ",
        "operationId": "removeAuthorizedPartyForSpecificVersion",
        "parameters": [
          {
            "name": "functionId",
            "in": "path",
            "description": "Function id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "functionVersionId",
            "in": "path",
            "description": "Function version",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchAuthorizedPartyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizedPartiesResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AuthorizedPartyDto": {
        "required": [
          "ncaId"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "description": "Client Id -- 'sub' claim in the JWT. This field should not be  specified anymore."
          },
          "ncaId": {
            "type": "string",
            "description": "NVIDIA Cloud Account authorized to invoke the function"
          }
        },
        "description": "Data Transfer Object(DTO) representing an authorized party."
      },
      "AuthorizedPartiesByFunctionDto": {
        "required": [
          "id",
          "ncaId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Function id",
            "format": "uuid"
          },
          "ncaId": {
            "type": "string",
            "description": "NVIDIA Cloud Account Id"
          },
          "versionId": {
            "type": "string",
            "description": "Function version id",
            "format": "uuid"
          },
          "authorizedParties": {
            "type": "array",
            "description": "Authorized parties allowed to invoke the function",
            "items": {
              "$ref": "#/components/schemas/AuthorizedPartyDto"
            }
          }
        },
        "description": "Data Transfer Object(DTO) representing a function with authorized accounts"
      },
      "AuthorizedPartiesResponse": {
        "required": [
          "function"
        ],
        "type": "object",
        "properties": {
          "function": {
            "$ref": "#/components/schemas/AuthorizedPartiesByFunctionDto"
          }
        },
        "description": "Parties authorized to invoke function"
      },
      "PatchAuthorizedPartyRequest": {
        "required": [
          "authorizedParty"
        ],
        "type": "object",
        "properties": {
          "authorizedParty": {
            "$ref": "#/components/schemas/AuthorizedPartyDto"
          }
        },
        "description": "Request payload to associate/disassociate authorized party with function "
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```