---
title: "Add grants to a connection path"
method: POST
path: "/v2/connections/paths/{connectionPathId}/grants"
tags: ["Connections"]
---

# Add grants to a connection path

`POST /v2/connections/paths/{connectionPathId}/grants`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/connections/paths/{connectionPathId}/grants`
- Auth: HTTP bearer

Add a grant to a specific connection path to grant permissions for users or teams.

  ### Usage notes
  - Retrieve the **connectionPathId** by calling the [/v2/connection/{connectionId}/lookup](https://help.sigmacomputing.com/reference/lookup-connection) endpoint and using the `inodeId` included in the response, or by calling the [/v2/connections/paths](https://help.sigmacomputing.com/reference/list-connection-paths) endpoint and using the `urlId` included in the response.
  - Specify the team or user IDs to grant permissions:

    - Retrieve the **memberId** by calling the [/v2/members](https://help.sigmacomputing.com/reference/list-members) endpoint.
    - Retrieve the **teamId** by calling the [/v2/teams](https://help.sigmacomputing.com/reference/list-teams) endpoint.

## Path parameters

- `connectionPathId` string, required

## Request body

- object
  - `grants` V2ConnectionsPathsConnectionPathIdGrantsPostRequestBodyContentApplicationJsonSchemaGrantsItems[], required
    - `grantee` union, required
      - V2ConnectionsPathsConnectionPathIdGrantsPostRequestBodyContentApplicationJsonSchemaGrantsItemsGrantee0: The UUID of the member receiving the grant
        - `memberId` string, required
      - V2ConnectionsPathsConnectionPathIdGrantsPostRequestBodyContentApplicationJsonSchemaGrantsItemsGrantee1: The UUID of the team receiving the grant
        - `teamId` string, required
    - `permission` 'annotate' | 'usage', required

## Response `200`

The response body.

- ConnectionsCreateConnectionPathGrantResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
