S D K Keys (beta)
Replace SDK key views
Replace the set of views associated with an SDK key. The viewKeys field is required. To remove all views from the SDK key, pass an empty viewKeys array.
Authorization
ApiKey read, writeAuthorization<token>
In: header
Scope: read, write
Path Parameters
projectKey*string
environmentKey*string
sdkKeyKey*string
Query Parameters
expand?string
A comma-separated list of fields to expand in the response. Supported fields: viewSummaries.
Header Parameters
LD-API-Version*"beta"
Version of the endpoint.
Value in
- "beta"
Request Body
application/json
viewKeys*array<string>
The complete target list of view keys to associate with this SDK key. An empty array removes all views from the SDK key.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v2/projects/string/environments/string/sdk-keys/string/views" \ -H "LD-API-Version: beta" \ -H "Content-Type: application/json" \ -d '{ "viewKeys": [ "viewKeys", "viewKeys" ] }'{ "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "kind": "sdk", "description": "description", "_createdByMemberId": "_createdByMemberId", "isDefault": true, "viewSummaries": [ { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "resourceSummary": { "flagCount": 5, "segmentCount": 2 }, "name": "name", "key": "key" }, { "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "resourceSummary": { "flagCount": 5, "segmentCount": 2 }, "name": "name", "key": "key" } ], "_createdAt": 6, "name": "name", "expiry": 0, "value": "value", "_updatedAt": 1, "_version": 5, "key": "key"}