Find Tag by Serial

This end point is use for get tag by tag serial

[GET] /ruangkerja/tags/:tagSerial

Information

This API is a function for retrieve single tag information 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
tagSerialstringYESpathSerial of tag

Example cURL Request

curl --location --request GET 'https://api.ruangkerja.id/ruangkerja/tags/RUKRTAG-9WHL0JGP' \
--header 'Authorization: access_token'

Example Success Response

{
    "status": "success",
    "message": "Success",
    "data": {
        "name": "Training User Batch 1",
        "serial": "RUKRTAG-9WHL0JGP"
    }
}

Example Failed Response

{
    "errorCode": 123,
    "message": "rpc error: code = PermissionDenied desc = Token is not valid",
    "detail": "rpc error: code = PermissionDenied desc = Token is not valid"
}

See also: Error Dictionary.