Patch Team
Partially 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 sk-1234' --header 'Content-Type: application/json' --data-raw '{
"metadata": {"cost_center": "1234", "deprecated_key": null}
}'
Path parameters
Headers
The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
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