You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, the edit() method should not require $custom to be passed in. This should be optional.
Secondly the method does not work. The API rejects the request as it is expecting an object not an array. It returns Bad request. Content: {"reasons":{"custom":"Expected object but got array"}
Need to put (object) in front of $custom, like so:
$this->httpPut("conversations/$conversationId/messages/$messageId", ['text' => $text, 'custom' => (object) $custom])
The text was updated successfully, but these errors were encountered:
Firstly, the edit() method should not require $custom to be passed in. This should be optional.
Secondly the method does not work. The API rejects the request as it is expecting an object not an array. It returns Bad request. Content: {"reasons":{"custom":"Expected object but got array"}
Need to put (object) in front of $custom, like so:
$this->httpPut("conversations/$conversationId/messages/$messageId", ['text' => $text, 'custom' => (object) $custom])
The text was updated successfully, but these errors were encountered: