---
title: "Add or update a list (table) sharing grant"
method: POST
path: "/workspace/tables/{id}/grants"
tags: ["workspace"]
---

# Add or update a list (table) sharing grant

`POST /workspace/tables/{id}/grants`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/workspace/tables/{id}/grants`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Upsert a grant on a list. Same members-only boundary as libraries on project scope.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `granteeType` 'USER' | 'TEAM', required
  - `granteeId` string, required
  - `accessLevel` 'VIEW' | 'CONTRIBUTE' | 'MANAGE', required

## Response `201`

Grant created or updated

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
