Tema anterior: Organizations

Tema siguiente: Update an Organization

Create an Organization

This web service creates an organization.

HTTP Type

POST

Restriction

Administrator Only.

This web service is restricted to the global Cloud Commons DB only. This web service is restricted from being used on a local integrated DB.

URI

{type}/SMI/{version}/organization/create

Parameter

Description

&key

The API Key that is provided when your application has been registered.

&secret

The Shared Secret that is provided when your application has been registered.

&name

Name of the resource being created.

&geog

The geographic location of the organization.

&url

The URL of the organization.

&size

Number of employees in the organization.

&yrs

Number of years the organization being created has been in business.

&country

Country where the organization has its headquarters.

&rev

Yearly revenue of the organization.

&zip

Zip or postal code of the organization.

&ind

Industry sector that the organization belongs to.

Example:

This example creates an organization called TestOrg.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/organization/create?name=TestOrg&geog=North%20America&size=32&url=http://www.test.com&yrs=21&key=52da1e089a5a8ee3d3ccf38254f5e8b8&secret=9a31daab4f41ac1897c102339283e303

Sample output of successful execution:

{
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 1,
	"Bean-List": {
		"ResourceOrganization-Bean":[
			{ "id": "3155", "name": "TestOrg", "uuid": "b06f0a1e-ff29-4aea-a182-3a4883ef6231", "geography": "North America", "size": "32", "url": "http://www.test.com", "yearInBusiness": "21", "country": "null", "revenue": "null", "postalCode": "null", "industry": "null", "creationDate": "2011-3-24 21:59:43. 0", "createdBy": "testadmin@ca.com", }
					]
		     }
	}
}