Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kick endpoint #424

Open
jellejurre opened this issue Dec 24, 2024 · 3 comments
Open

Add kick endpoint #424

jellejurre opened this issue Dec 24, 2024 · 3 comments
Labels
Type: Undocumented Endpoint Wow! This is new! This is unchartered terrirory and is only recommended by experienced comitters

Comments

@jellejurre
Copy link
Contributor

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 jellejurre added the Type: Undocumented Endpoint Wow! This is new! This is unchartered terrirory and is only recommended by experienced comitters label Dec 24, 2024
@tompointexe
Copy link

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

@jellejurre
Copy link
Contributor Author

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
Copy link
Contributor Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Undocumented Endpoint Wow! This is new! This is unchartered terrirory and is only recommended by experienced comitters
Development

No branches or pull requests

2 participants