| POST | /api/centers/save |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | body | string | Yes | The company name |
| ThirdPartyAccountId | body | string | No | Third party ID for this client |
| Address | body | AddressInfo | No | The center's address |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CustomerName | form | string | Yes | The HostedSuite Customer Name |
| UserName | form | string | Yes | The HostedSuite User Name. Data visibility and security is based on this user's permissions. |
| Password | form | string | Yes | The HostedSuite User's Password |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| DateLastModified | form | string | No | |
| Name | form | string | No | |
| Address | form | AddressInfo | No | |
| TimeZoneId | form | string | No | |
| SupportEmailAddress | form | string | No | |
| ThirdPartyAccountId | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Street1 | form | string | No | |
| Street2 | form | string | No | |
| City | form | string | No | |
| State | form | string | No | |
| PostalCode | form | string | No | |
| Country | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| DateLastModified | form | string | No | |
| Name | form | string | No | |
| Address | form | AddressInfo | No | |
| TimeZoneId | form | string | No | |
| SupportEmailAddress | form | string | No | |
| ThirdPartyAccountId | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/centers/save HTTP/1.1
Host: cpo.hostedsuite.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Name":"String","ThirdPartyAccountId":"String","Address":{"Street1":"String","Street2":"String","City":"String","State":"String","PostalCode":"String","Country":"String"},"CustomerName":"String","UserName":"String","Password":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":"String","DateLastModified":"String","Name":"String","Address":{"Street1":"String","Street2":"String","City":"String","State":"String","PostalCode":"String","Country":"String"},"TimeZoneId":"String","SupportEmailAddress":"String","ThirdPartyAccountId":"String"}