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

# Revoke Sites

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

## 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/revoke`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

Revoke the external collaborator's access to the given sites. Removes
access only; their edits and published versions remain.

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