---
title: "Set a resource's allow-external-requests toggle"
method: PUT
path: "/workspace/libraries/{id}/external-requests"
tags: ["access-requests"]
---

# Set a resource's allow-external-requests toggle

`PUT /workspace/libraries/{id}/external-requests`

## Request

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

Manage-sharing gated; restricted resources only (400 NOT_RESTRICTED). The other half of the double opt-in. Same paths exist for /workspace/tables/{id}, /workspace/pages/{id}, and /projects/{id}.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `enabled` boolean, required

## Response `200`

{ allowExternalRequests }

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