- Overview
- Authenticating
- SDKs
- Authentication
- Events
- Time off
- Access-credential
Submit access credentials
POST
/v1/access-credentials
access-credential
Request
Body Params application/json
data
array[object (AccessCredentialUpdate) {3}]
required
<= 100 items
username
string
required
Example:
user.email@example.com
updateId
string
required
Example:
379EB561-0378-4718-ACEA-5669932208A9
credentials
array[object (AccessCredential) {5}]
required
<= 100 items
Example
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.calven.com/v1/access-credentials' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢201Success
application/json
Body
updateId
string
required
Example:
379EB561-0378-4718-ACEA-5669932208A9
result
enum<string>
required
Allowed values:
CARD_UPDATE_FAILEDOKPARTIAL_UPDATEUSER_NOT_FOUND
message
string
required
Example:
User not found
results
array[object (AccessCredentialUpdateResult) {4}]
required
cardNumber
string
required
facilityCode
string
required
result
enum<string>
required
Allowed values:
CARD_UPDATE_FAILEDOKPARTIAL_UPDATEUSER_NOT_FOUND
message
string
required
Example
{
"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 2024-04-05 01:14:16