| POST | /api/centers/update |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | string | No | The ID of the center you want to update. Either specify this or the Name parameter. |
| Name | body | string | No | The Name of the center you want to update. Either specify this or the Id parameter. |
| NewName | body | string | No | The new name for the center. Leave null to not modify name. |
| Address | body | AddressInfo | No | The center's new 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/centers/update HTTP/1.1
Host: cpo.hostedsuite.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: String,
Name: String,
NewName: 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: text/jsv
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
}