PUT
/
security
/
apiKeys
/
activate
cURL
curl -X PUT "https://dev.api.onekhusa.com/sandbox/v1/security/apiKeys/activate" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 67485577,
    "clientKey": "abcdefghijklmnopqrstuvwxyz1234",
    "changedBy": "admin@example.com"
  }'
"API key has been activated successfully"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer Token, Where accessToken is the access token used to authenticate the request.

Headers

Accept-Language
string
default:en

Preferred language for the response

Body

application/json

Request payload for activating a client API key

merchantAccountNumber
integer
required

The merchant account that owns the API key

Example:

67485577

clientKey
string
required

The client API key value to activate

Example:

"abcdefghijklmnopqrstuvwxyz1234"

changedBy
string
required

Email or identifier of the operator performing the activation

Example:

"admin@example.com"

Response

200 - application/json

Success - API key status has been changed successfully

The response is of type string.

Example:

"API key has been activated successfully"