update_access_list
Modify an existing access control list in Nginx Proxy Manager to adjust authentication rules and access permissions for web applications.
Instructions
Update an existing access list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access_list_id | Yes | ||
| name | No | ||
| satisfy_any | No | ||
| pass_auth | No |
Implementation Reference
- src/npm_mcp/client.py:220-227 (handler)The client method that performs the actual API request to update the access list.
async def update_access_list(self, access_list_id: int, access_list: AccessList) -> AccessList: access_list_id = _validate_int_id(access_list_id, "access_list_id") response = await self._request( "PUT", f"/api/nginx/access-lists/{access_list_id}", json=access_list.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}), ) return AccessList(**response.json()) - src/npm_mcp/server.py:481-487 (handler)The server handler that processes the 'update_access_list' tool call by merging existing data with new arguments and calling the client.
elif name == "update_access_list": args = dict(arguments) access_list_id = args.pop("access_list_id") current = await npm_client.get_access_list(access_list_id) updated_data = current.model_dump() updated_data.update(args) return _model_response(await npm_client.update_access_list(access_list_id, AccessList(**updated_data)))