---
title: "Reset Team Member Credits"
method: PATCH
path: "/teams/{team_id}/members/{member_id}/reset-credits"
tags: ["teams"]
---

# Reset Team Member Credits

`PATCH /teams/{team_id}/members/{member_id}/reset-credits`

## Request

- Base URL: `https://api.dante-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dante-ai.com/teams/{team_id}/members/{member_id}/reset-credits`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2
    - Password
    - Token URL: `auth/jwt/login`
- TypeScript: <https://skmtc.dev/dante-ai/apis/dante-ai-api/docs/teams/:team_id/members/:member_id/reset-credits/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `team_id` string, uuid, required
- `member_id` string, uuid, required

## Response `200`

Successful Response

- TeamUser
  - `id` string, uuid
  - `date_created` string, date-time
  - `date_updated` string, date-time
  - `team_id` string, uuid, required: The ID of the team associated with the user.
  - `user_id` string, uuid, required: The ID of the user associated with the team.
  - `team_role_id` string, uuid, required: The ID of the role associated with the user and team.
  - `all_knowledge_bases` boolean: Flag indicating whether the user can access all knowledge bases.
  - `credits` number: The number of credits available for the user.
  - `credits_available` integer: The number of credits available for the user.
  - `total_credits_used` number: The total number of credits used by the user.
  - `accepted` boolean: Flag indicating whether the user has accepted the invitation.
  - `invitation_token` string, uuid: The token used for the invitation.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dante-ai/apis/dante-ai-api.md) - [All operations](https://skmtc.dev/dante-ai/apis/dante-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dante-ai/apis/dante-ai-api/revisions/38b6c9a4246d?raw)
