Add a card to a user
POST/cards
Registers a new card for this user, based on the specification submitted.
When submitting an NFC card, you need to fill the type & value fields. When submitting a barcode, only fill the type field, the value will be autogenerated.
You may submit display_name for both types, but that is optional.
Request
Responses
- 201
- 400
- 401
- 403
- 500
Created, returns the resulted card
Bad Request, might occur when submitting the values wrong (or if your NFC ID is not unique)
Unauthorized
Forbidden, triggered when the card is already linked
Internal Server Error