Add a reader
Every capture names the reader it was taken on, and Bioprints accepts only readers on your tenant. If you ship readers to your own stores or customers, your shipping system can add each one as it leaves, with a registry key. If you buy readers from us, we add them for you and you do not need this call.
A registry key can only add, freeze and delete readers on one tenant. It cannot enroll, identify or read anything else, and a tenant key cannot call these routes. Ask us for one as you would for a tenant key.
Add the reader
curl -s https://api.bioprints.io/palm/v1/readers \
-H "Authorization: Bearer $BIOPRINTS_REGISTRY_KEY" \
-H "Content-Type: application/json" \
-d '{"serial": "VS2405110001"}'
Bioprints answers 201 Created with the reader:
{ "serial": "VS2405110001", "state": "active" }
The call is safe to repeat as it is, so it takes no Idempotency-Key. A reader already on your tenant answers
200 OK with the reader as it stands.
| Status | code | It means |
|---|---|---|
409 | reader_unavailable | The serial belongs to another tenant. Ask us to move it. |
400 | request_invalid | The serial is empty, over 100 characters, . or .., has a space at either end, or holds a control character, a comma, a double quote or a slash. |
A reader that comes back frozen
A reader you froze stays frozen when you add it again: the answer is 200 OK with "state": "frozen". Only we can
unfreeze a reader, so ask us when one returns to service.
Delete a reader
To remove a reader from your tenant altogether, such as a serial added by mistake, delete it:
curl -s -X DELETE https://api.bioprints.io/palm/v1/readers/VS2405110001 \
-H "Authorization: Bearer $BIOPRINTS_REGISTRY_KEY"
Bioprints answers 204 No Content. From then on every capture taken on the reader is refused 403
sensor_not_allowed, and its serial is free to be added again, by any tenant. A serial that is not on your tenant,
including one you already deleted, answers 404 reader_not_found, so the call takes no Idempotency-Key.
To stop a reader while keeping it on your tenant, freeze it instead.
See also
- Freeze a hand, a person or a reader: stop a reader you took back.
- Readers explains what the serial check protects against.