# Set one inbox's privacy

Sets whether new threads on one inbox are visible to the workspace or private to their owner and the inbox's members, and whether a colleague's own mailbox or Zoom line is open for everyone to send from. Answers the whole visibility bag. An admin for any inbox; the owner for their own connected mailbox or Zoom line.

Access class: `workspace`.

## Endpoint

`PUT /v1/comms/inboxes/{medium}/{identifier}/visibility`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| medium | path | string | Yes |
| identifier | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "visibility": "string"
  },
  "params": {
    ":identifier": "string",
    ":medium": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

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