Add Organization

02/11/2020 | Less than 1 minute to read

Info Note

API TYPE: POST
End Point: POST /org/add
Description: To Add a Organization

Request (Add Organization)

02/11/2020 | 2 minutes to read


{
  "data": [
    {
      "codeUuid": "string",
      "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
      "isActive": true,
      "isDemo": true,
      "orgAddress": {
        "city": "string",
        "codeUuid": "string",
        "country": "string",
        "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
        "isActive": true,
        "orgEmail": "string",
        "orgMobile": "string",
        "pin": "string",
        "state": "string",
        "streetAddress": "string",
        "updatedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
        "uuid": "string",
        "website": "string"
      },
      "orgAdmin": "string",
      "orgName": "string",
      "organizationUuid": "string",
      "suborganization": [
        {}
      ],
      "updatedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
      "userUuid": "string",
      "uuid": "string"
    }
  ],
  "metadata": {
    "fileCodeUuid": "string",
    "orgUuid": "string",
    "userUuid": "string"
  }
}

Response (Add Organization)

02/11/2020 | Less than 1 minute to read



{
  "data": [
    {}
  ],
  "metadata": {
    "fileCodeUuid": "string",
    "orgUuid": "string",
    "userUuid": "string"
  },
  "statusCode": "OK"
}

ErrorCode (Add Organization)

02/11/2020 | 3 minutes to read

HTTP Status Code Reason Response Model Headers
200 We received the request and created Successfully    
200 CCP-US-014 | Parent Oganization Not Found for Organization Admin    
200 CCP-US-009 | Duplicate Key Value Violates Unique Constraint    
400 CCP-HTTP-003 | Request method not supported    
401 You are not authorized to view the resource    
403 Accessing the resource you were trying to reach is forbidden    
404 The resource you were trying to reach is not found    

©2021 Developer.CSensorNet.com. All rights reserved | Powered by www.clovity.com