Edit RFID
Description#
This endpoint is used to get edit an existent RFID card
Request format#
Method: POST
Endpoint: https://api.thor.tools/latest/integration/rfid/edit
Body format: JSON
| Key | Type | Description |
|---|---|---|
| id | String | The unique RFID card identifier. |
| active | Boolean | The RFID card is set as active in the administration dashboard. |
| alias | String | The RFID card name. |
Request schema:
Response format#
The response doesn't contain any field, but if it has an HTTP status code 200 - OK, it means that the request was completed successfully.
Error response#
The following errors are returned if something went wrong while processing the request:
| HTTP status code | Message | Description |
|---|---|---|
| 403 | APIKeyNotFound | An invalid API key was given in the header of the request. |
| 403 | RestAPINotEnabled | REST API integration is set as disabled in the administration dashboard. |
| 403 | InvalidSourceIPAddr | The request comes from an IP address that is different from the one given in the REST API integration configuration. |
| 404 | InvalidIDField | The type or content of the id parameter is invalid. |
| 404 | RFIDNotFound | No RFID card with the give id was found. |
| 404 | NoDataToUpdate | There is not a field to update. |
| 500 | InternalServerError | Something unexpected went wrong while executing the request. |