PATCH
/
api
/
v1
/
readers
/
{id}
curl --request PATCH \
  --url https://api.passentry.com/api/v1/readers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reader": {
    "id": "south-gate-3",
    "password": "Test789!",
    "mifareClassicNfcEnabled": true,
    "scanEnabled": false,
    "redeemEnabled": true,
    "qrEnabled": true
  }
}'
{
  "data": {
    "id": "south-gate-3",
    "type": "reader",
    "attributes": {
      "name": "South Gate Reader",
      "readerType": "PassentryReader",
      "loggedIn": false,
      "qrEnabled": true,
      "mifareClassicNfcEnabled": true,
      "scanEnabled": false,
      "redeemEnabled": true,
      "addPointsEnabled": false,
      "ndefTagScanningEnabled": false,
      "lastSeenAt": "2020-03-13T13:00:00Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Reader ID

Body

application/json
reader
object

Response

200
application/json
successful
id
string

Identifier of the reader

Example:

"west_entrance_01"

type
string
Example:

"reader"

attributes
object

Was this page helpful?