Tema anterior: Create an Organization

Tema siguiente: Get an Organization by Name

Update an Organization

This web service updates information for an organization.

HTTP Type

PUT

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/{name}/update

Parameter

Description

{name}

The existing name of the organization.

&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.

&toname

Updated name of the organization.

&geog

Updated geographic location of the organization.

&url

Updated URL of the organization.

&size

Updated number of employees in the organization.

&yrs

Updated number of years the organization being created has been in business.

&country

Updated country where the organization has its headquarters.

&rev

Updated yearly revenue of the organization.

&zip

Updated zip or postal code of the organization.

&ind

Updated industry sector that the organization belongs to.

Example:

This example updates the TestOrg organization with the data defined in the provided parameters.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/organization/TestOrg/update?name=NewTestOrg&geog=Asia&size=55&url=http://www.test1.com&yrs=44&key=98ce4910fc7f6fdb7af270ea9b3162b6&secret=eafe362499ecead24b3092ec12853590

Sample output of successful execution:

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

		     }
	}
}