curl --request POST \
--url https://api.cashful.africa/api/canary/authentication/api-key/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keyId": "key_12345"
}
'{
"apiKey": {
"id": "key_123",
"name": "Updated API Key"
}
}Update an API key’s properties
curl --request POST \
--url https://api.cashful.africa/api/canary/authentication/api-key/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keyId": "key_12345"
}
'{
"apiKey": {
"id": "key_123",
"name": "Updated API Key"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
API key updated successfully
API key updated successfully
Show child attributes
{
"id": "key_123",
"name": "Updated API Key"
}