src/Api/MessageThread.php
public function setName(string $name) : void
    {
        $data = (object)[
            'threadNameDetail' => (object)[
                'threadName' => $name
            ]
        ];

        $this->putJson(sprintf(self::MESSAGE_THREAD_ENDPOINT . 'threads/%s/name', $this->messageThreadId), $data);
    }
public function setName(string $name) : void
    {
        $data = (object)[
            'threadNameDetail' => (object)[
                'threadName' => $name
            ]
        ];

        $this->putJson(sprintf(self::MESSAGE_THREAD_ENDPOINT . 'threads/%s/name', $this->messageThreadId), $data);
    }
public function setName ( string $ name ) : void { $ data = ( object ) [ 'threadNameDetail' => ( object ) [ 'threadName' => $ name ] ] ; $ this -> putJson ( sprintf ( self :: MESSAGE_THREAD_ENDPOINT . 'threads/%s/name' , $ this -> messageThreadId ) , $ data ) ; }
Set the name of the MessageThread.

@param string $name Name of the MessageThread.
@return void
Set the name of the MessageThread .