Skip to content

Commit 9b04985

Browse files
committed
Fixed operation struct for Messages V2, operation metadata is a map<string, string>
1 parent 4d63d5e commit 9b04985

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

textile/chat-features.textile

+4-6
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ h4(#rest-sending-messages-request-v1). Corresponding Realtime Event V1 @(depreca
518518
h4(#rest-sending-messages-request-v2). Request V2
519519

520520
Below is the full REST payload format for the V2 endpoint. The @metadata@ and @headers@ keys are optional.
521-
521+
Please note that @metadata@ is of type map<string, any> or jsonObject.
522522
<pre>
523523
POST /chat/v2/rooms/<roomId>/messages
524524
{
@@ -580,7 +580,7 @@ h3(#rest-updating-messages). Updating Messages
580580
h4(#rest-updating-messages-request). Request
581581

582582
Below is the full REST payload format for the endpoint. The @description@, @headers@ and both @metadata@ keys are optional.
583-
583+
Please note that outer @metadata@ is of type map<string, string>.
584584
<pre>
585585
PUT /chat/v2/rooms/<roomId>/messages/<serial>
586586
{
@@ -654,7 +654,7 @@ h3(#rest-deleting-messages). Deleting Messages
654654
h4(#rest-deleting-messages-request). Request
655655

656656
Below is the full REST payload format for the endpoint.
657-
657+
Please note that @metadata@ is of type map<string, string>.
658658
<pre>
659659
POST /chat/v2/rooms/<roomId>/messages/<serial>/delete
660660
{
@@ -849,9 +849,7 @@ h4(#chat-structs-message-v2). Messages V2
849849
"clientId": "who-performed-the-action",
850850
"description": "why-the-action-was-performed"
851851
"metadata": {
852-
"foo": {
853-
"bar": 1
854-
}
852+
"foo": "bar"
855853
},
856854
}
857855
}

0 commit comments

Comments
 (0)