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
Name | Type | Example | Required | Description |
---|---|---|---|---|
Authorization | string | access_token | YES | Token of authentication. Get from Authentication API |
Accept | string | application/json | YES | Defines the message format that is expected by the client |
Content-Type | string | application/json | YES | Defines the message format of the request body that is sent by the client |
Parameter
Name | Type | Required | Location | Description |
---|---|---|---|---|
tagSerial | string | YES | path | Serial 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.