Update Tag Bulk
This end point is use for update tags
[POST] /ruangkerja/tags/update-bulk
Information
This API is a function for update multiple tags in single operation 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 |
---|---|---|---|---|
serial | string | YES | body | Serial of tag |
name | string | YES | body | Name of tag |
Example cURL Request
curl --location --request POST 'https://api.ruangkerja.id/ruangkerja/tags/update-bulk' \
--header 'Authorization: access_token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{
"serial": "RUKRTAG-Q7KXEPJO",
"name": "Intern"
}
]
}'
Example Success Response
{
"data": {
"failedItems": [],
"successItems": [
{
"payload": {
"name": "Intern"
},
"response": {
"serial": "RUKRTAG-Q7KXEPJO"
}
}
]
},
"status": "success",
"message": "success"
}
Example Failed Response
{
"data": {
"failedItems": [
{
"error": {
"detail": "tag name already been taken",
"errorCode": 11101,
"message": "TAG_NAME_EXISTS"
},
"payload": {
"name": "Intern"
}
}
],
"successItems": []
},
"status": "success",
"message": "success"
}
See also: Error Dictionary.