Skip to content

Commit

Permalink
docs(users.md): add team reset budgets to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishdholakia committed Jun 11, 2024
1 parent b875a72 commit 61834ee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/my-website/docs/proxy/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <your-master-key>' \
--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,
}'
```

</TabItem>
<TabItem value="per-team-member" label="For Team Members">

Expand Down

0 comments on commit 61834ee

Please sign in to comment.