# updateManagerVisibilityConfig

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| PUT | https://api.thomas.co/v1/manager-visibility/config |

| Field | Value |
|---|---|
| operationId | updateManagerVisibilityConfig |
| method | PUT |
| server | https://api.thomas.co/v1 |
| path | /manager-visibility/config |
| tags | `Manager Visibility` |
| summary | Set an insight auto-visibility flag (Owner only) |
| badges | `{"name":"Owner"}` |

## Request Parameters

None.

## Request Body

| Content type | Schema refs |
|---|---|
| application/json | #/components/schemas/UpdateOrgInsightVisibilityBodyDto |

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | The updated visibility row | #/components/schemas/OrgInsightVisibilityRowDto |
| 400 | Ineligible/unknown insight (PRIVACY_INELIGIBLE_INSIGHT) or invalid payload | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | Owner role required | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 400 example

```json
{
  "statusCode": 400,
  "message": "Insight is not eligible for manager auto-visibility",
  "error": "PRIVACY_INELIGIBLE_INSIGHT"
}
```

### Response 401 example

```json
{
  "statusCode": 401,
  "message": "Invalid or missing authentication token",
  "error": "AUTH_TOKEN_INVALID"
}
```

### Response 403 example

```json
{
  "statusCode": 403,
  "message": "Insufficient role privileges",
  "error": "AUTH_INSUFFICIENT_ROLE"
}
```
