setTenantDevToolsAccessSettings
TenantDevToolsAccessSettingsWrapper setTenantDevToolsAccessSettings(TenantDevToolsAccessSettingsRequestDto)
POST /api/2.0/settings/devtoolsaccess
Set the Developer Tools access settings
Sets whether the portal restricts the User role from using the developer tools (API keys, OAuth apps, webhooks); RoomAdmin and DocSpaceAdmin are never affected by this setting. Requires Owner or DocSpaceAdmin (the EditPortalSettings permission). This is a mutating, idempotent, portal-wide call: it applies to every User on the tenant immediately. It returns the saved setting; read the current value at any time from GET api/2.0/settings/devtoolsaccess.
Parameters
| Name | In | Type | Description | Notes |
|---|---|---|---|---|
| TenantDevToolsAccessSettingsRequestDto | body | TenantDevToolsAccessSettingsRequestDto | [optional] |
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | Saved developer tools access restriction for the User role | TenantDevToolsAccessSettingsWrapper | X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset |
| 403 | The caller has no portal-settings right | - | - |
| 401 | Unauthorized | ErrorApiResponse | - |
| 429 | Too Many Requests. | ErrorApiResponse | Retry-After |
| 500 | Internal Server Error. | ErrorApiResponse | - |
| 400 | Bad Request. | ErrorApiResponse | - |
| 502 | Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON. | - | - |
| 503 | Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON. | - | - |
Return type
TenantDevToolsAccessSettingsWrapper
Authorization
Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId
HTTP request headers
- Content-Type: application/json
- Accept: application/json