From 51a02de4cf4b9660711862bca942b0bb8f94ba43 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 15 May 2024 08:25:14 -0700 Subject: [PATCH] refactor(proxy_server.py): update doc string for /user/update --- litellm/proxy/proxy_server.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index e747e1047..aee75d54f 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -6622,7 +6622,19 @@ async def user_info( ) async def user_update(data: UpdateUserRequest): """ - [TODO]: Use this to update user budget + Example curl + + ``` + curl --location 'http://0.0.0.0:4000/user/update' \ + --header 'Authorization: Bearer sk-1234' \ + --header 'Content-Type: application/json' \ + --data '{ + "user_id": "test-litellm-user-4", + "user_role": "proxy_admin_viewer" + }' + + See below for all params + ``` """ global prisma_client try: