This API allows user to modify an existing individual customer.
This API also allows user to:
Method | URL | Description |
---|---|---|
PUT | /ws/v12/interaction/customer | Modify an existing individual customer. |
Authentication is required. The client must be logged in to call this API. Each API request must contain X-egain-session request header returned by Login API.
All of the following are required:
The logged in user must have the following licenses:
Name | Description | Allowed values | Default value |
---|---|---|---|
X-egain-session | Session ID obtained from Login API response header | N/A | N/A |
Accept | Content type accepted by client. | application/xml or application/json | N/A |
Content-Type | Media type sent by the client | application/xml or application/json | N/A |
Accept-Language | Language locale accepted by client (used for locale specific fields in resource representation and in error responses) | Supported 'Accept-Language' header codes | default system language |
The request body is mandatory. Request body can be in either XML or JSON format:
Name | Description |
---|---|
id | ID of the customer. |
Name | Description |
---|---|
level.value | Must be one of the values configured in application. |
role.value | Must be one of 'Partner', 'Reseller', or 'Customer'. |
pin | Must not exceed 255 characters. |
howReferred.value | Must be one of 'Website', 'Customer', 'Partner', 'Employee', or 'Reseller'. |
industry.value | Must be one of the values configured in application. |
marketSegment | Must not exceed 50 characters. |
preferredAgent.id | Must match the ID of a user in application. |
entitlements | Must not exceed 1024 characters. |
contactPersons.contactPerson | Can have a single contact person.
|
customAttributes | Name must match one of the custom attributes configured in application. If the custom attribute is configured as an enumeration, the value must be one of the predefined values. For string type of custom attribute that is not configured as an enumeration, refer list of Allowed Characters For Custom Attributes. |
NOTE: To remove value of any element of type "String", set the value to an empty string.
None
None
Name | Description | Possible values |
---|---|---|
X-egain-session | ID of the current user session | N/A |
Content-Type | Media type of response body | application/xml or application/json |
The response body will be sent only in case of error. It can be in either XML or JSON format.
204 - No Content
400 - Bad Request
401 - Unauthorized
403 - Forbidden
406 - Not Acceptable
500 - Internal server error
Example 1 - Edit customer attributes of an individual customer
Example 2 - Edit contact person attributes of the customer
Example 3 - Add and edit contact points of the customer
Example 4 - Edit the customer by removing the values