---
title: "Grant Sites"
method: POST
path: "/v1/externals/{user_id}/sites"
tags: ["externals"]
---

# Grant Sites

`POST /v1/externals/{user_id}/sites`

## Request

- Base URL: `https://api.shapemaker.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.shapemaker.io/v1/externals/{user_id}/sites`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

Grant the external collaborator access to the given sites.

## Path parameters

- `user_id` integer, required

## Request body

- ExternalSiteGrantsInput
  - `docIds` string[], required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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