Update Specific Group API
Require Authentication
This API is used to update specific group within a zone for the company based on combination of deviceID and token.
URL
api/projects/updategroup/:projectID/:projectgroupID
Required parameter (in URL)
- :projectID «contains projectID that want to be looked for. It must be put in the URL, e.g: api/projects/updategroup/1/4. To get available projectID, please visit Get Available Zones»
- :projectgroupID «contains projectgroupID that want to be looked for. It must be put in the URL, e.g: api/projects/updategroup/1/4»
Required parameter (POST)
- deviceID
- token
- groupName
Optional parameter
Example JSON Payload
{
"deviceID": "ABCD-EFGH-IJKL-MNOP",
"token": "bb602ab13b8090268cd6e3bb9dfa39e2",
"groupName": "Test Group API edit"
}
Possible return HTTP status code
- 200
- 400
- 401
- 404
- 405
Return message
{
"status": "success",
"message": {
"projectgroupID": 1,
"projectID": 1,
"projectName": "TEst without icon in the kost",
"groupName": "Test Group API edit",
"createdDate": 1462715208,
"updatedDate": 1462733687,
"createdBy": 3,
"updatedBy": 3,
"companyID": 1
}
}