Submit a signed leave event to a resident server
PUT {{baseUrl}}/send_leave/:roomId/:eventId
Note: This API is nearly identical to the v1 API with the exception of the response format being fixed.
This endpoint is preferred over the v1 API as it provides a more standarised response format. Senders which receive a 400, 404, or other status code which indicates this endpoint is not available should retry using the v1 API instead.
Submits a signed leave event to the resident server for it to accept it 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", "depth"=>12, "content"=>{"membership"=>"leave"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{}