diff --git a/src/actions.tsx b/src/actions.tsx index e3caacd..adc2341 100644 --- a/src/actions.tsx +++ b/src/actions.tsx @@ -648,5 +648,35 @@ export const USERS_ACTIONS: ActionInfo[] = [ endpoint: "/users/{user_id}", permissions: Permission.Admin, response_action: "Ignore" - } + }, + { + name: "Change Permissions", + args: { + name: "Add Permissions", + requestType: "post", + endpoint: "/servers/{server_id}/permissions", + permissions: Permission.Admin, + response_action: "Ignore", + args: { + properties: { + Permissions: { + type: "number", + title: "Permissions", + permissions: true, + } + }, + type: "object", + required: [], + default: { + Permissions: 0 + }, + title: "Set User Permissions", + definitions: definitions, + } + }, + requestType: "patch", + endpoint: "/users/{user_id}/permissions", + permissions: Permission.Admin, + response_action: "Ignore" + }, ] \ No newline at end of file