team management
Patch Team
Changed onPartially update a team using RFC 7386 JSON Merge Patch semantics.
team_id is taken from the path; a team_id in the body is accepted only when it matches. metadata is merged with the team's stored metadata rather than replacing it: an omitted key is preserved, key: null deletes it, and any other value overwrites (recursing into nested objects). Every other field behaves exactly like POST /team/update (omitted preserves, a value overwrites). Returns the full updated team.
curl --location --request PATCH 'http://0.0.0.0:4000/team/8d916b1c-510d-4894-a334-1c16a93344f5' --header "Authorization: Bearer $LITELLM_MASTER_KEY" --header 'Content-Type: application/json' --data-raw '{
"metadata": {"cost_center": "1234", "deprecated_key": null}
}'
patch/team/{team_id}
Request
- Base URL: https://api.sea-lion.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.sea-lion.ai/team/{team_id}
- Auth: API key in header x-litellm-api-key
Path parameters
team_idstring required
Headers
litellm-changed-bystring nullable
The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
Request body
Response
Successful Response
Changes
- info
endpoint added
- info