Update SDK key

Update a an existing SDK key by its identifying key.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
environmentKeystringRequired
sdkKeyKeystringRequired

The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value.

Headers

LD-API-VersionenumRequired
Version of the endpoint.
Allowed values:

Query parameters

versionintegerOptional
The version of the SDK key for optimistic locking. If provided, the update will only succeed if the current version matches.

Request

An array of patches for updating an existing SDK key. The following fields are supported: name, description, expiry.

namestringOptional

(Optional)The human-readable name of the SDK key.

descriptionstringOptional

(Optional) The description of the SDK key.

expirylongOptional

Response

Successful response
kindenum

The kind of SDK key. Can be either “sdk” (server-side) or “mobile” (mobile).

keystring

The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value.

namestring

The human-readable name of the SDK key.

valuestring
The string value of the SDK key. Use this when configuring your SDK.
isDefaultboolean

Indicates if this SDK key is the system-defined default for the environment. There may also be an expiring default SDK key for the environment (not possible with mobile keys).

_createdAtlong
_updatedAtlong
_versioninteger

The auto-incremented version number of the SDK key.

descriptionstring
The optional description of the SDK key.
expirylong
_createdByMemberIdstring
The ID of the member who created the SDK key. This field is immutable.
viewSummarieslist of objects
Summaries of views associated with the SDK key.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error