Request

Change Endpoint Settings

POST https://api.chatsight.ai/settings/text

HEADER x-chatsight-api-auth: <API-TOKEN>

curl --location --request POST 'https://api.chatsight.ai/settings/text' \
--header 'x-chatsight-api-auth: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{"apiendpoint.version": "2.1"}'
axios.post('https://api.chatsight.ai/settings/text',{"apiendpoint.version": "2.1"},{headers:{"x-chatsight-api-auth":"<YOUR-API-KEY>"}})
.then(response => {
  if(response.data && response.data.success){
    return response.data
  }else{
    return false
  }
}).catch(err => {return err})

Response

Caution should be taken when providing handlers for responses on this method in particular. In the future a standardized response will be returned.

A successful or unsuccessful response will return an Array with three elements: [Success,Message,Error]

If the internal live-modification system ran into an error, a standard JSON response will be returned instead.

// Modification was Accepted.
[true,null,null]

// Modification was Rejected.
[false,null,null]

// Generic Error
{
  "api":"chatsight-lang-text",
  "success":false,
  "error":{}
}