Submit a signed knock event to a resident server.
PUT {{baseUrl}}/send_knock/:roomId/:eventId
Submits a signed knock event to the resident server for it to accept into the room's graph. Note that events have a different format depending on the room version - check the room version specification for precise event formats. The request and response body here describe the common event fields in more detail and may be missing other required fields for a PDU.
Request Body
{"state_key"=>"@someone:example.org", "sender"=>"@someone:example.org", "origin"=>"matrix.org", "origin_server_ts"=>1234567890, "type"=>"m.room.member", "content"=>{"membership"=>"knock"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"knock_room_state":{"$ref":"../../event-schemas/examples/knock_room_state.json"}}