modify

open fun modify(thread: Thread, request: ModifyThreadRequest): Thread

Modifies the given thread to have the given updated values.

This method returns a new thread object wrapper. The thread parameter is used only for Thread.id. After this request, you should discard all of your references to the thread, since they are now outdated.

Return

The modified thread

Parameters

thread

The thread to modify

request

The values to update the thread with


abstract fun modify(id: String, request: ModifyThreadRequest): Thread

Modifies the thread with the given id to have the given updated values.

This method returns a new thread object wrapper. After this request, you should discard your references to the thread, since they are now outdated.

Return

The modified thread

Parameters

id

The id of the thread to modify

request

The values to update the thread with