# Set a pack page's workspace access

Sets the level every member with no grant of its own gets on a pack page. Body `{"level": "write"|"read"}`; `read` makes the page read only for them, enforced on its rows by the database. A per-member grant still wins, and owners and admins always write. Admin seat, Enterprise.

Access class: `def:admin`.

## Endpoint

`PUT /v1/definitions/{key}/workspace-access`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "level": "string"
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "level": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
