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 HeaderDescription
secretKeySecret key generated in backend application.
content-typeApplication/JSON

Request Body

The following table describes the request parameters:

ParameterTypeMandatoryDescription
appidStringYesSpecifies the application ID.
useridStringYesSpecifies the user ID.
threadidStringYesSpecifies 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:

ParameterTypeMandatoryDescription
statusStringYesSpecifies the update status

Response Example

{
  "code": "0",	
  "description": "success"
}
Language
Copyright © 2000 - 2021 IMImobile Limited | All Rights Reserved