Update Tag By Serial
This end point is use for update tag
[PUT] /ruangkerja/tags/:tagSerial
Information
This API is a function for update single tag 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 |
---|---|---|---|---|
name | string | YES | body | Name of tag |
Example cURL Request
curl --location --request PUT 'https://api.ruangkerja.id/ruangkerja/tags/RUKRTAG-9WHL0JGP' \
--header 'Authorization: access_token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Training User Batch 1"
}'
Example Success Response
{
"status": "success",
"message": "Success",
"data": {
"serial": "RUKRTAG-9WHL0JGP"
}
}
Example Failed Response
{
"errorCode": 11101,
"message": "TAG_NAME_EXISTS",
"detail": "tag name already been taken"
}
See also: Error Dictionary.