Update thread properties

Ask the Community

Change the properties of an existing thread


Overview #

Update an existing thread with new data.
Vanilla JavaScript:
await window.CordSDK.thread.updateThread('my-awesome-thread-id', {
  name: 'A more awesome name',
  resolved: true,
});
await window.CordSDK.thread.updateThread('my-awesome-thread-id', {
  name: 'A more awesome name',
  resolved: true,
});
Copy

What this function returns #

A promise that resolves to true if the operation succeeded or rejects if it failed.

Arguments this function takes #


threadID #

required
string
The ID of the thread to update.


data #

required
ClientUpdateThread
The data values that should be updated.

This is an object with the following fields:

Show property details


Not finding the answer you need? Ask our Developer Community

Ask Cordy