diff --git a/docs/my-website/docs/proxy/users.md b/docs/my-website/docs/proxy/users.md index b1530da7601..c42b6409c36 100644 --- a/docs/my-website/docs/proxy/users.md +++ b/docs/my-website/docs/proxy/users.md @@ -102,6 +102,22 @@ curl --location 'http://localhost:4000/team/new' \ "budget_reset_at": null } ``` + +#### **Add budget duration to users** + +`budget_duration`: Budget is reset at the end of specified duration. If not set, budget is never reset. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"). + +``` +curl 'http://0.0.0.0:4000/team/new' \ +--header 'Authorization: Bearer ' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "team_alias": "my-new-team_4", + "members_with_roles": [{"role": "admin", "user_id": "5c4a0aa3-a1e1-43dc-bd87-3c2da8382a3a"}], + "budget_duration": 10s, +}' +``` +