Skip to content

Commit

Permalink
Merge pull request #643 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Modify the REST API of Modifying Sent Text or Custom Message
  • Loading branch information
haoxiuwen authored Feb 22, 2024
2 parents 1cf1e9c + b8ac65a commit 5d67e35
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/document/server-side/message_modify_text_custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ curl -X PUT -i 'https://XXXX/XXXX/XXXX/messages/rewrite/1235807318835202004' \
"new_msg": {
"type": "txt",
"msg": "update message content"
}
},
"new_ext": {
"key": "value",
"old_key": "new_value"
}
},
"is_combine_ext": true
}'
```
Expand All @@ -131,11 +131,15 @@ curl -X PUT -i 'https://XXXX/XXXX/XXXX/messages/rewrite/1235807318835202004' \
"user": "user1",
"new_msg": {
"type": "custom",
"customEvent": "custom_event"
"customEvent": "custom_event",
"customExts":{
"ext_key1":"ext_value1"
}
}
},
"new_ext": {
"key": "value",
"old_key": "new_value"
},
"is_combine_ext": true
}'
```
Expand Down

0 comments on commit 5d67e35

Please sign in to comment.