Skip to main content
PATCH
/
api
/
teams
/
{id}
Update team
import requests

url = "https://app.langwatch.ai/api/teams/{id}"

payload = { "name": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
{
  "id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "organizationId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://langwatch.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

Path Parameters

id
string
required

Team ID

Body

application/json
name
string

New team name

Required string length: 1 - 255

Response

Updated team

id
string
required

Team ID (prefixed with team_)

name
string
required

Team name

slug
string
required

URL-friendly team identifier

organizationId
string
required

ID of the owning organization

createdAt
string<date-time>
required
updatedAt
string<date-time>
required