Superfy Platform API Documentation


Add New Group API

Require Authentication

This API is used to create new group within specific zone for the company based on combination of deviceID and token.


URL

api/projects/addgroup/:projectID

Required parameter (in URL)

Required parameter (POST)

Optional parameter

Example JSON Payload

{
	"deviceID": "ABCD-EFGH-IJKL-MNOP",
	"token": "bb602ab13b8090268cd6e3bb9dfa39e2",
	"groupName": "Test Group API"
}

Possible return HTTP status code

Return message, contains newly created pin project

{
  "status": "success",
  "message": {
    "projectgroupID": 3,
    "projectID": 1,
    "companyID": 1,
    "groupName": "Test Group API",
    "createdDate": 1462732975,
    "updatedDate": 1462732975,
    "createdBy": 3,
    "updatedBy": 3
  }
}