PUT
/
v2
/
api-keys
/
{id}
curl --request PUT \
  --url https://sandbox.hyperswitch.io/v2/api-keys/{id} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "name": "Sandbox integration key",
  "description": "Key used by our developers to integrate with the sandbox environment",
  "expiration": "never"
}'
{
  "key_id": "5hEEqkgJUyuxgSKGArHA4mWSnX",
  "merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
  "name": "Sandbox integration key",
  "description": "Key used by our developers to integrate with the sandbox environment",
  "prefix": "<string>",
  "created": "2022-09-10T10:11:12Z",
  "expiration": "never"
}

Authorizations

api-key
string
header
required

Admin API keys allow you to perform some privileged actions such as creating a merchant account and Connector account.

Path Parameters

id
string
required

The unique identifier for the API Key

Body

application/json

The request body for updating an API Key.

Response

200
application/json

API Key updated

The response body for retrieving an API Key.