跳到主要内容

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​

NameInTypeDescriptionNotes
TenantDevToolsAccessSettingsRequestDtobodyTenantDevToolsAccessSettingsRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200Saved developer tools access restriction for the User roleTenantDevToolsAccessSettingsWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The caller has no portal-settings right--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service 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