---
title: "Authorize Accounts To Invoke Function"
method: POST
path: "/v2/nvcf/authorizations/functions/{functionId}"
tags: ["Authorized Accounts"]
---

# Authorize Accounts To Invoke Function

`POST /v2/nvcf/authorizations/functions/{functionId}`

Authorizes additional NVIDIA Cloud Accounts to invoke any version of the  specified function. By default, a function belongs to the NVIDIA Cloud Account  that created it, and the credentials used for function invocation must  reference the same NVIDIA Cloud Account. Upon invocation of this endpoint, any  existing authorized accounts will be overwritten by the newly specified  authorized accounts. 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

## Request body

- AuthorizedPartiesRequest — Request to associated authorized parties for a specific version or allversions of a function
  - `authorizedParties` AuthorizedPartyDto[], required — Parties authorized to invoke 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

## 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)
