Submit access credentials
Run in Apidog
Submit access credentials to Calven.
Request Provide your bearer token in the Authorization
header when making requests to protected resources. Example: Authorization: Bearer ********************
Body Params application/json
{
"data" : [
{
"username" : "user.email@example.com" ,
"updateId" : "379EB561-0378-4718-ACEA-5669932208A9" ,
"credentials" : [
{
"active" : true ,
"cardNumber" : "1234567890" ,
"facilityCode" : "100" ,
"scanData" : [
"100:1234567890"
] ,
"credentialType" : "Mifare"
}
]
}
]
}
Request Code Samples
curl --location --request POST 'https://api.calven.com/v1/access-credentials' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"username": "user.email@example.com",
"updateId": "379EB561-0378-4718-ACEA-5669932208A9",
"credentials": [
{
"active": true,
"cardNumber": "1234567890",
"facilityCode": "100",
"scanData": [
"100:1234567890"
],
"credentialType": "Mifare"
}
]
}
]
}'
Responses application/json Generate Code
{
"updateId" : "379EB561-0378-4718-ACEA-5669932208A9" ,
"result" : "CARD_UPDATE_FAILED" ,
"message" : "User not found" ,
"results" : [
{
"cardNumber" : "string" ,
"facilityCode" : "string" ,
"result" : "CARD_UPDATE_FAILED" ,
"message" : "string"
}
]
}
Modified at 2025-04-03 13:59:13