Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pterodactyl/application/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Creates a user.

| Code | Description |
| ---- | ------------------------------------ |
| 200 | The request was successful. |
| 201 | The request was successful. |
| 422 | One or more validation rules failed. |

### Sources
Expand Down
23 changes: 23 additions & 0 deletions wings/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,31 @@ Sources:

- [router/router_server.go#L142](https://github.com/pterodactyl/wings/blob/release/v1.11.2/router/router_server.go#L142)

### `POST /api/deauthorize-user`

Disconnects user from server websockets and SFTP sessions.

### Body

| Field | Visibility | Type | Description |
| -------- | ---------- | --------------- | -------------------------- |
| user | required | string | A user to deny. |
| servers | required | array of string | A list of servers to deny. |

### Responses

| Code | Description |
| ---- | ------------------------------------- |
| 204 | The request was successful. |

Sources:

- [router/router_system.go#L159](https://github.com/pterodactyl/wings/blob/a97e8ae09fd682057ef229d4940d6dcb0cdaf3af/router/router_system.go#L159)

### `POST /api/servers/:uuid/ws/deny`

> Deprecated. Use `POST /api/deauthorize-user` instead.

Adds the given JWT IDs (or "jti"s) to the server websocket's deny list, preventing tokens with the JTIs from connecting or interacting with the server websocket.

### Body
Expand Down