specification icon indicating copy to clipboard operation
specification copied to clipboard

Add kick endpoint

Open jellejurre opened this issue 1 year ago • 4 comments

Note: doesnt kick only bans from lobby

POST /user/[TARGETUSERID]/moderations

{ "type": "kick", "targetUserId": "usr_1039a8fd-c172-4f58-9362-2f9642a1137f", "reason": "The instance owner was disappointed in you, you will not be coming back.", "created": "0001-01-01T00:00:00.0000000", "expires": "0001-01-01T00:00:00.0000000", "isPermanent": false, "worldId": "wrld_4b341546-65ff-4607-9d38-5b7f8f405132", "instanceId": "25221~group(grp_cc89bad1-5e9a-4d8e-8967-5b5bc6b61bd9)~groupAccessType(public)~region(us)" }

jellejurre avatar Dec 24 '24 00:12 jellejurre

Feels like this could be a very dangerous endpoint if wrongly used

tompointexe avatar Dec 24 '24 01:12 tompointexe

Feels like this could be a very dangerous endpoint if wrongly used

It can only be done by the owner of the lobby, it doesn't give you more power than being in the game does (except for more customisability I suppose)

jellejurre avatar Dec 24 '24 07:12 jellejurre

Oh yeah, note to implementer, it has its own 429:

"{ "error": { "message": "Too many moderations being created at one player․", "status_code": 429 } }"

jellejurre avatar Dec 24 '24 07:12 jellejurre

Returns {"error":{"message":"You cannot moderate this user․","status_code":403}} if target user is not in instance

lillithrosepup avatar Nov 02 '25 09:11 lillithrosepup