api/v1/customers/{id}/Update
Method: PATCH https://simportal-api-staging.azurewebsites.net/api/v1/customers/{id}/Update
Summary
Updates a customer
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
The properties required to update the customer
CustomerPatchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| CustomerDefaultEmail | string |
None. |
|
| DefaultPoolId | globally unique identifier |
None. |
|
| Suspended | boolean |
None. |
|
| Hidden | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"CustomerDefaultEmail": "sample string 2",
"DefaultPoolId": "66f54afd-dec9-4718-9841-2898e4cc2f5c",
"Suspended": true,
"Hidden": true
}
application/xml, text/xml
Sample:
<CustomerPatchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimPortalApi.Controllers"> <CustomerDefaultEmail>sample string 2</CustomerDefaultEmail> <DefaultPoolId>66f54afd-dec9-4718-9841-2898e4cc2f5c</DefaultPoolId> <Hidden>true</Hidden> <Name>sample string 1</Name> <Suspended>true</Suspended> </CustomerPatchModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CustomerPatchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| CustomerDefaultEmail | string |
None. |
|
| DefaultPoolId | globally unique identifier |
None. |
|
| Suspended | boolean |
None. |
|
| Hidden | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"CustomerDefaultEmail": "sample string 2",
"DefaultPoolId": "fbe42a5e-2af0-40e0-b063-9f8f83ebbde9",
"Suspended": true,
"Hidden": true
}
application/xml, text/xml
Sample:
<CustomerPatchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimPortalApi.Controllers"> <CustomerDefaultEmail>sample string 2</CustomerDefaultEmail> <DefaultPoolId>fbe42a5e-2af0-40e0-b063-9f8f83ebbde9</DefaultPoolId> <Hidden>true</Hidden> <Name>sample string 1</Name> <Suspended>true</Suspended> </CustomerPatchModel>