Skip to content

Update a keycard

POST
/api/keycards/{keycardId}

Post /api/keycards/:keycardId

Parameters

Path Parameters

keycardId
required
string
<= 20 characters

Request Body required

object
data
required
object
friendlyId
string
nullable
binding
Any of:
object
chargerId
required
string

Responses

200

Response for status ok

object
success
required
boolean
keycard
required
object
id
required
string
<= 20 characters
namespaceId
required
string
friendlyId
string
binding
Any of:
object
chargerId
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

400

Response for status badRequest

object
success
required
boolean
message
required
string

403

Response for status forbidden

object
success
required
boolean
message
required
string

404

Response for status notFound

object
success
required
boolean
message
required
string

500

Response for status internalServerError

object
success
required
boolean
message
required
string