Update Tags API
Require Authentication
This API is used to update tags for the company based on combination of deviceID and token.
URL
api/manageassets/updatetags/:pinstagsID
Required parameter (in URL)
- :pinstagsID «contains pinstagsID that want to be updated. It must be put in the URL, e.g: api/manageassets/updatetags/6»
Required parameter (POST)
- deviceID
- token
Optional parameter
- tags_text «contains new tags. Tags should be unique in company.»
Example JSON Payload
{
"deviceID": "ABCD-EFGH-IJKL-MNOP",
"token": "bb602ab13b8090268cd6e3bb9dfa39e2",
"tags_text": "tags API edit"
}
Possible return HTTP status code
- 200
- 400
- 401
- 405
Return message, contains newly updated tags
{
"status": "success",
"message": {
"pinstagsID": 6,
"tags_text": "tags API edit",
"companyID": 1
}
}