Delete Tag Bulk

This end point is use for delete tags

[POST] /ruangkerja/tags/delete-bulk

Information

This API is a function for delete multiple tags in single operation by tag serial as parameter.

Headers

NameTypeExampleRequiredDescription
Authorizationstringaccess_tokenYESToken of authentication. Get from Authentication API
Acceptstringapplication/jsonYESDefines the message format that is expected by the client
Content-Typestringapplication/jsonYESDefines the message format of the request body that is sent by the client

Parameter

NameTypeRequiredLocationDescription
serials[]stringYESbodySerial of tag

Example cURL Request

curl --location --request POST 'https://api.ruangkerja.id/ruangkerja/tags/delete-bulk' \
--header 'Authorization: access_token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "serials": [
        "RUKRTAG-AAM0239Q",
        "RUKRTAG-HJQD5G4J"
    ]
}'

Example Success Response

{
    "data": {
        "failed": [],
        "success": [
            "RUKRTAG-AAM0239Q",
            "RUKRTAG-HJQD5G4J"
        ]
    },
    "status": "success",
    "message": "success"
}

Example Failed Response

{
    "data": {
        "failed": [
            "RUKRTAG-AAM0239Q",
            "RUKRTAG-HJQD5G4J"
        ],
        "success": []
    },
    "status": "success",
    "message": "success"
}

See also: Error Dictionary.