# Set who may see messages by default

Replaces the whole bag of visibility defaults, keyed by medium and by inbox. A key the body leaves out is DROPPED, which is exactly how a privacy pane turns one back off, so send the full bag. A key naming an inbox the workspace does not have is refused, quoting it. Admin only.

Access class: `workspace:admin`.

## Endpoint

`PUT /v1/comms/settings/visibility`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "defaults": {
      "call": "string",
      "email": "string",
      "imessage": "string",
      "sms": "string"
    }
  },
  "params": {},
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "defaults": {
    "call": "string",
    "email": "string",
    "imessage": "string",
    "sms": "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"
}
```
