post https://api.imiconnect.io/api/v1/apps/$(appid)/user/$(userid)/threads/$(threadid)/update
This API is used to update the thread information from a given app. Based on an app id, user id, and thread id, you can close or reopen a thread or update a thread information.
Request
The create thread request is specified as follows:
Request Headers
The following table describes the request headers:
| Request Header | Description |
|---|---|
| secretKey | Secret key generated in backend application. |
| content-type | Application/JSON |
Request Body
The following table describes the request parameters:
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| appid | String | Yes | Specifies the application ID. |
| userid | String | Yes | Specifies the user ID. |
| threadid | String | Yes | Specifies the thread ID. |
Request Example
Example Req 1:
{
“status”:”Closed” // This will change thread status to closed
}
Example Req 2:
{
“status”:”Active” // This will change thread status to active
}
Example Req 3:
{
“title” :”new_title” // This will change thread title to new value, Fields which are not updated remains same
}
{
“status”:”Closed”
}
Request Body
The following table describes the elements in the request URL:
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| status | String | Yes | Specifies the update status |
Response Example
{
"code": "0",
"description": "success"
}