Delete Data from Card

Last Updated on : 2021-07-19 12:45:20download

Delete data from a card.

API address

DELETE: /v1.0/devices/{device_id}/door-lock/card-issuers/cards/{card_id}/sectors

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.
card_id String uri true The card number. This field is required when targetStatus is set to 1. When targetStatus is set to 0
  • If the value of cardId is not passed in, all invalid data is cleared.
  • When the value of cardId is set, only the data of the current card is deleted.
target_status Integer query true The state of the door card when it is deleted.
  • 0: invalid.
  • 1: valid.

Return parameter

Parameter name Type Description
result void No result is returned.

Request example

DELETE: /v1.0/devices/6c8bcd1020b712c2c4ibrq/door-lock/card-issuers/cards/4a5be5ef/sectors?targetStatus=1

Return example

{ "t": 1614147303662, "success": true }

Error code

For more information, see error code.