Delete Card

Last Updated on : 2025-05-28 10:16:14Copy for LLMView as MarkdownDownload PDF

Based on the unique ID of a door lock card, send a command of deleting the card to the lock, so that the card becomes invalid for the door lock.

API address

DELETE: /v1.0/osaas/projects/{project_id}/card-issue-devices/lock-devices/{device_id}/cards/{lock_card_id}

Request parameter

Parameter nameTypeINRequiredDescription
project_idStringuritrueThe unique ID of a specified project.
device_idStringuritrueThe unique ID of a specified device.
lock_card_idStringuritrueThe unique ID of a specified card.

Return parameter

Parameter nameTypeDescription
resultLockCardOperateResponseThe returned result of a specified card.

Description of result

Parameter nameTypeDescription
operate_idStringThe unique ID of the operation.
operate_resultBooleanThe operation result.
lock_card_idStringThe unique ID of a specified card.

Request example

DELETE: /v1.0/osaas/projects/150188910571223***/card-issue-devices/lock-devices/6c470253258246b99*****/cards/3245***

Return example

{
    "tid": "aae3ead40e3a11ed818882d0e****",
    "result": {
        "lock_card_id": "3245***",
        "operate_id": "1552534592777359***",
        "operate_result": true
    },
    "t": 1658988066464,
    "success": true
}

Error code

For more information, see error code.