# Update the tenant-wide UI preferences (tenant administrators).

`PUT /api/tenant-ui-preferences`

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

Schema: [UiPreferencesConfigDTO](https://sourcey-gauzy.pages.dev/api-reference/models/uipreferencesconfigdto/index.md)

- `preferredUi` (optional)
  Type: unknown
  
  allOf:
    Reference: [PreferredUiEnum](https://sourcey-gauzy.pages.dev/api-reference/models/preferreduienum/index.md); Type: string
    
    enum: ["angular","react"]

Responses:

- 202: UI preferences saved successfully.

- 400: Invalid input.

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/tenant-ui-preferences' \
  -H 'Content-Type: application/json' \
  --data-raw '{}'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/tenant-ui-preferences', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
  },
  body: '{}',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.put(
    'http://localhost:3000/api/tenant-ui-preferences',
    data='{}'.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
