Skip to navigation

Update API Key

View as Markdown

Updates an API key’s name, or promotes it to the primary key. Provide at least one of name or is_primary. is_primary can only be set to true.

Authentication

AuthorizationBasic

Use your API key with HTTP Basic authentication in the form Basic <api_key>. See Authentication for more information. ✅ Supported by Try it console (calls sent in test_mode only).

OR
AuthorizationBearer

You can use an Access Token issued through an OAuth flow to send calls to the Dropbox Sign API from your app. The access scopes required by this endpoint are listed in the gray box above. See Authentication for more information. ❌ Not supported by Try it console.

Path parameters

api_key_idstringRequiredformat: "^[0-9a-fA-F]{40}$"=40 characters
The ID of the API key to update.

Query parameters

account_idstringOptional
The ID of the account that owns the API key. Defaults to the authenticated account when omitted.

Request

This endpoint expects an object.
namestring or nullOptional<=25 characters
New name for the API key. Must be unique on the account and at most 25 characters.
is_primaryboolean or nullOptional

Set to true to make this key the account’s primary API key. The previous primary key remains on the account and is no longer primary.

Response headers

X-RateLimit-Limitinteger
The maximum number of requests per hour that you can make.
X-RateLimit-Remaininginteger
The number of requests remaining in the current rate limit window.
X-Ratelimit-Resetinteger
The Unix time at which the rate limit will reset to its maximum.

Response

successful operation
api_keyobject
warningslist of objectsOptional
A list of warnings.

Errors

4XX
Client Request Error