Skip to main content
POST
/
v3
/
sites
/
{site}
/
cards
Add Card
curl --request POST \
  --url https://app.plugchoice.com/api/v3/sites/{site}/cards \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "id_token": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "id_token": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}
Adds a new RFID card to the specified location.
site
string
required
The UUID of the location.
name
string
required
The display name of the card. Maximum 255 characters.
id_token
string
required
The RFID token identifier. Maximum 20 characters.

Response

id
integer
The numeric ID of the card.
name
string
The display name of the card.
id_token
string
The RFID token identifier of the card.
created_at
string
ISO 8601 timestamp of when the card was created.
updated_at
string
ISO 8601 timestamp of when the card was last updated.