PATCH api/customers/{customerId}
Partially update of a customer. Can update PhoneNumber (numbers only, max 14 digits), MobileNumber (numbers only, max 14 digits) and/or Email (must be a valid address, max 100 characters).
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId |
Customer ID |
integer |
Required |
Body Parameters
The properties to update.
CustomerResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Address | ElwAddress |
None. |
|
| BirthDate | date |
None. |
|
| CustomerId | integer |
None. |
|
| CustomerType | string |
None. |
|
| string |
None. |
||
| FirstName | string |
None. |
|
| IsBroadbandCustomer | boolean |
None. |
|
| IsDistrictHeatingCustomer | boolean |
None. |
|
| IsNetCustomer | boolean |
None. |
|
| IsPowerCustomer | boolean |
None. |
|
| LastName | string |
None. |
|
| MobileNumber | string |
None. |
|
| OrganizationNo | string |
None. |
|
| PhoneNumber | string |
None. |
|
| Pin | string |
None. |
|
| RequiresProfileConfirmation | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Address": {
"AddressText": "sample string 1",
"City": "sample string 2",
"CoAddress": "sample string 3",
"CountryCode": "sample string 4",
"Entrance": "sample string 5",
"Floor": "sample string 6",
"HouseLetter": "sample string 7",
"HouseNo": "sample string 8",
"IsEditable": true,
"POBox": 10,
"ZipCode": "sample string 11"
},
"BirthDate": "2025-12-21T15:42:24.4678235+00:00",
"CustomerId": 2,
"CustomerType": "sample string 3",
"Email": "sample string 4",
"FirstName": "sample string 5",
"IsBroadbandCustomer": true,
"IsDistrictHeatingCustomer": true,
"IsNetCustomer": true,
"IsPowerCustomer": true,
"LastName": "sample string 10",
"MobileNumber": "sample string 11",
"OrganizationNo": "sample string 12",
"PhoneNumber": "sample string 13",
"Pin": "sample string 14",
"RequiresProfileConfirmation": true
}
text/html
Sample:
{"Address":{"AddressText":"sample string 1","City":"sample string 2","CoAddress":"sample string 3","CountryCode":"sample string 4","Entrance":"sample string 5","Floor":"sample string 6","HouseLetter":"sample string 7","HouseNo":"sample string 8","IsEditable":true,"POBox":10,"ZipCode":"sample string 11"},"BirthDate":"2025-12-21T15:42:24.4678235+00:00","CustomerId":2,"CustomerType":"sample string 3","Email":"sample string 4","FirstName":"sample string 5","IsBroadbandCustomer":true,"IsDistrictHeatingCustomer":true,"IsNetCustomer":true,"IsPowerCustomer":true,"LastName":"sample string 10","MobileNumber":"sample string 11","OrganizationNo":"sample string 12","PhoneNumber":"sample string 13","Pin":"sample string 14","RequiresProfileConfirmation":true}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.