Update Account Credential
Update an account credential -- rotate its PIN or toggle its active status, which reactivates a soft-deleted credential (pin and is_active are the only updatable fields). Authorization mirrors credential creation: an account can update its own credentials, and a parent (PSP/partner) can update a child account's credentials.
Path Parameters
- Type: string · Credential Idcredential
_id requiredThe ID of the credential to update
Headers
- enumAcceptconst:application/jsonrequired
Response format. Must be
application/json.values- application/json
- enumContent
- Type const:application/jsonrequiredRequest payload format. Must be
application/jsonwhen a body is sent.values- application/json
Body·
required
application/json
- Type: boolean | null · Is Activeis
_active - Type: string | null · Pinpinmin length:6max length:6
Responses
- application/json
- application/json
Request Example for put/v1/accounts/credentials/{credential_id}
curl 'https://api.uat.koard.com/v1/accounts/credentials/{credential_id}' \
--request PUT \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-koard-apikey: YOUR_SECRET_TOKEN' \
--data '{
"is_active": null,
"pin": null
}'
{
"account_id": "string",
"code": "string",
"created_at": "2026-07-10T18:41:46.967Z",
"deleted_at": null,
"email": null,
"firebase_uid": null,
"id": "string",
"is_active": true,
"last_token_invalidated_at": null,
"last_used_at": null
}
