api-key
Update an existing API key. (admin access required)
Changed onCreates a API key
patch/api-key
Request
- Base URL: ./../api/v1/ (relative, and the document was published on a file host, not at the API’s origin)
- URL: ./../api/v1/api-key
- Auth: API key in header token
Request body
Example request
{
"id": "unique_cuid_v2_of_entry_to_update",
"token": "api_key_to_change_to",
"UsageCreditsToAddOrRemove": [
{
"unit": "",
"amount": "10000000"
},
{
"unit": "c48cbb3d5e57ed56e276bc45f99ab39abe94e6cd7ac39fb402da47ad0014df105553444d",
"amount": "-25000000"
}
],
"status": "Active",
"walletScopeEnabled": false,
"WalletScopeHotWalletIds": [
"hot_wallet_id_1",
"hot_wallet_id_2"
]
}Response
API key updated
Example response
{
"status": "Success",
"data": {
"id": "api_key_id",
"token": "masumi_payment_api_key_secret",
"permission": "Admin",
"canRead": true,
"canPay": true,
"canAdmin": true,
"usageLimited": true,
"NetworkLimit": [
"Preprod",
"Mainnet"
],
"ChainIdLimit": [
"cardano:preprod"
],
"RemainingUsageCredits": [
{
"unit": "",
"amount": "10000000"
}
],
"status": "Active",
"walletScopeEnabled": false,
"WalletScopes": [],
"x402WalletScopeEnabled": false,
"X402WalletScopes": []
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
the
request property default valueActivewas removed - info
the
request property default valuetruewas removed - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- info
- breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the request property
- warning
removed the request property
- info
the
request property default valueActivewas added - info
the
request property default valuetruewas added
- breaking