Update a Contact API
Use this API to update a specific contact associated with a stream ID.| METHOD | PUT |
|---|---|
| Endpoint | https://{{host}}/agentassist/api/v1/public/{{streamId}}/contacts/{{id}} |
| Content Type | application/json |
| Authorization | auth: {{JWT}} See How to generate the JWT Token. |
| API Scope | Configuration |
Path Parameters
| PARAMETER | DESCRIPTION | TYPE |
|---|---|---|
host | Environment URL, for example, https://platform.kore.ai | string, required |
streamId | BotId or StreamId. You can access it from the App Settings page of the bot. | string, required |
id | Unique identifier of a specific contact | string, required |
Sample Request
Request Header Parameters
| Header | Description | Required/Optional |
|---|---|---|
auth | JWT token for authentication. | required |
accountId | The account ID associated with the API request. | required |
Content-Type | The format in which the request payload is sent to the server application/json | required |
Sample Response
Response parameters
| Parameter | Description | Type |
|---|---|---|
firstName | Contact’s first name. | string |
lastName | Contact’s last name. | string |
fullName | Contact’s full name. | string |
salutation | Salutation or title of the contact. | string |
cellPhone | Mobile details of the contact. | object |
cellPhone.extension | Dialing prefix | string |
cellPhone.phoneNumber | Contact’s mobile phone number. | string |
cellPhone.countryCode | Country calling code associated with the phone number. | string |
status | Current status of the contact | string |
instanceBotId | Unique identifier of the associated bot instance. | string |
orgId | Unique identifier of the organization. | string |
accountId | Unique identifier of the account. | string |
createdBy | Unique identifier of the user who created the contact. | string |
createdByAId | Unique identifier of the application that created the record. | string |
address | List of addresses associated with the contact. | array of objects |
twitterDetails | List of Twitter profile details associated with the contact. | array of objects |
createdAt | Timestamp indicating when the contact was created. | string (ISO 8601 Date-Time) |
updatedAt | Timestamp indicating when the contact was last updated. | string (ISO 8601 Date-Time) |
updatedBy | Timestamp indicating when the contact was last updated. | string |
updatedByAId | Unique identifier of the application that updated the contact. | string |
id | Unique identifier of the contact record. | string |