Update jsonrpc man page

This commit is contained in:
AsamK 2025-09-15 11:06:06 +02:00
parent fb92bc3894
commit 7a82283762

View File

@ -140,18 +140,32 @@ REQUEST: `{"jsonrpc":"2.0","method":"listGroups","id":"5"}`
RESPONSE: `{"jsonrpc":"2.0","result":[...],"id":"5"}`
---
REQUEST: `{"jsonrpc":"2.0","method":"send","params":{"recipient":["+YYY"],"message":"MESSAGE"},"id":4}`
RESPONSE: `{"jsonrpc":"2.0","result":{"timestamp":999},"id":4}`
---
REQUEST: `{"jsonrpc":"2.0","method":"send","params":{"groupId":"GROUP_ID_BASE64","message":"MESSAGE"},"id":4}`
RESPONSE: `{"jsonrpc":"2.0","result":{"timestamp":999},"id":4}`
---
REQUEST: `{"jsonrpc":"2.0","method":"updateGroup","params":{"groupId":"GROUP_ID=","name":"new group name","members":["+ZZZ"],"link":"enabledWithApproval","setPermissionEditDetails":"only-admins"},"id":"someId"}`
RESPONSE: `{"jsonrpc":"2.0","result":{"timestamp":9999},"id":"someId"}`
---
REQUEST: `{"jsonrpc":"2.0","method":"sendSyncRequest","id":9}`
RESPONSE: `{"jsonrpc":"2.0","result":{},"id":9}`
---
REQUEST: `{"jsonrpc":"2.0"}`
RESPONSE: `{"jsonrpc":"2.0","error":{"code":-32600,"message":"method field must be set","data":null},"id":null}`