Update API Keys
Endpoint
PATCH /apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/keys/
Authentication
Requires a Personal API Access Token.
Header
Authorization: Bearer YOUR_TOKEN
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer {token} | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyName | string | Yes | API Proxy name |
Request Body
Full JSON Body Example - Update Both Keys
{
"publicKey": "ak_1234567890abcdef",
"secretKey": "sk_9876543210fedcba",
"deploy": false,
"deployTargetEnvironmentNameList": []
}
Full JSON Body Example - Update Only Public Key
{
"publicKey": "ak_1234567890abcdef"
}
Full JSON Body Example - Update Only Secret Key
{
"secretKey": "sk_9876543210fedcba"
}