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

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
namestringYESbodyName 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.