---
title: "Deselect SDK keys"
method: POST
path: "/v1/proxy-profiles/{proxyProfileId}/sdk-keys/deselect"
tags: ["Proxy Profiles"]
---

# Deselect SDK keys

`POST /v1/proxy-profiles/{proxyProfileId}/sdk-keys/deselect`

## Request

- Base URL: `https://api.configcat.com`
- URL: `https://api.configcat.com/v1/proxy-profiles/{proxyProfileId}/sdk-keys/deselect`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/configcat/apis/configcat-public-management-api/docs/v1/proxy-profiles/:proxyProfileId/sdk-keys/deselect/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint removes the given list of Config / Environment pairs' SDK Keys from a Proxy Profile
identified by the `proxyProfileId`.

## Path parameters

- `proxyProfileId` string, uuid, required

## Request body

- ProxyProfileSdkKeysRequest
  - `items` ProxyProfileSdkKeyRequestItem[], required: The list of Config / Environment pairs. By only setting a `configId` means all Environments of that Config will be included. Similarly, by only setting an `environmentId` means all Configs with that Environment will be included.
    - `configId` string, uuid, nullable: The identifier of the Config.
    - `environmentId` string, uuid, nullable: The identifier of the Environment.

## Response `200`

When the deselection was successful.

- ProxyProfileSdkKeysListModel
  - `items` ProxyProfileSdkKeyItem[], required: The list of SDK keys (with additional metadata) selected for the Proxy Profile.
    - `primarySdkKey` string, required: The primary SDK Key of the Config / Environment pair selected for the Proxy Profile.
    - `secondarySdkKey` string, nullable, required: The secondary SDK Key of the Config / Environment pair selected for the Proxy Profile.
    - `sdkId` string, required: The SDK ID identifying the Config / Environment pair selected for the Proxy Profile.
    - `configId` string, uuid, required: The identifier of the Config associated with the SDK key.
    - `environmentId` string, uuid, required: The identifier of the Environment associated with the SDK key.

## Other responses

- `400`: Bad request.
- `403`: Forbidden. When selection rules are applied to the Proxy Profile.
- `404`: Not found.
- `429`: Too many requests. In case of the request rate exceeds the rate limits.

---

[API](https://skmtc.dev/configcat/apis/configcat-public-management-api.md) - [All operations](https://skmtc.dev/configcat/apis/configcat-public-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/configcat/apis/configcat-public-management-api/revisions/0f143561d265?raw)
