insertorganization

description

Creates a Buzzy Organization

parameters

The X-Auth-Token and X-User-Id are derived from the values authToken and userId returned from the login endpoint and are used in the HTTP header.

{
        "organizationInfo":{
          "_id": "<optional unique identified, will be autogenerated>",
          "name": "<name of organizations - must be unique>",
          "description":"<optional description>"
        },
        adminID: "optional userID, that will become the admin of the organization, 
        if ot supplied  will be the user making the request"      
}




response

Returns the status of the request including the ID for the new organization.

example

POST /api/insertorganization 
X-Auth-Token:<insert token here>
X-User-Id:<insert user id here>

{
        "organizationInfo":{
          "_id": "<optional unique identified, will be autogenerated>",
          "name": "<name of organizations - must be unique>",
          "description":"<optional description>"
        },
        adminID: "optional userID, that will become the admin of the organization, 
        if ot supplied  will be the user making the request"      
}

You should get back:

{
    "status": "success", "result":"<result of insert>"
}

Last updated