This web service creates a provider.
POST
Administrator Only.
{type}/SMI/{version}/provider/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. |
|
&desc |
Description of the resource being created. |
|
&url |
The URL of the provider. |
|
&yrs |
The number of years the provider has been in business. |
|
&desg |
The designation of the provider. |
Example:
The following URI creates a provider called “TestCo” and stores it in the SMI DB. The UUID of the new provider is returned.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/provider/create?name=TestCo&url=www.test.com&desc=This%20is%20a%20test&yrs=1&desg=Accounting&key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 1,
"Bean-List": {
"ResourceProvider-Bean":[
{ "uuid": "229e9e95-d057-4e48-87a7-5f810c087789", "name": "TestCo", "companySiteURL": "https://www.test.com", "description": "This is a test", "providerTypeId": "null", "bussDesignation": "Accounting", "firstName": "null", "lastName": "null", "telephone": "null", "fax": "null", "email": "null", "title": "null", "streetAddress1": "null", "city": "null", "state": "null", "postalCode": "null", "country": "null", "yrsInBuss": "1", "streetAddress2": "null" }
]
}
}
}
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |