---
title: "Update a team member"
method: PATCH
path: "/team/members/{id}"
tags: ["Team"]
---

# Update a team member

`PATCH /team/members/{id}`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/team/members/{id}`
- Auth: API key in header `Authorization`

Changes a member's role or credit limit. `role` is `admin` or `member`; the owner keeps the admin role until ownership is transferred. `credit_cap` is the most credits the member's chats and tasks may use per billing cycle; `null` removes the limit. Only admins change the team, and an agent's call always asks the user first.

## Path parameters

- `id` string, required

## Request body

- object
  - `role` 'admin' | 'member'
  - `credit_cap` integer, nullable: Credits per billing cycle; null removes the limit.

## Response `200`

The updated member

- TeamMember
  - `object` string, required
  - `id` string, required
  - `email` string, required
  - `name` string, nullable, required
  - `role` string, nullable, required
  - `owner` boolean, required
  - `teammate` boolean, required
  - `agent_list` string, nullable, required
  - `agent_refusal` string, nullable, required
  - `credit_cap` integer, nullable, required
  - `credits_spent_this_cycle` integer, nullable, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-15** `56c22ab9b282`: 7 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `400`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - …3 more
- **2026-10-24** `2a302ee0aae3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/team/members/:id/patch.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
