Skip to content
PATCH /team/{id}

Merge-patch on `name`/`description`; membership is managed through the `/members` subroutes, never here. Allowed for holders of `team:manage` and for administrators of this particular team.

Path Parameters

idstring
required·

Team id (team_…).

Request Body

descriptionstring,null
namestring

Response Body

admin_countinteger

How many of them administer the team, counted the same way.

admin_previewobject[]

The first few administrators, with display names already resolved, so a client can name them without a lookup per row. At most 5 — a preview for a hover, never the set; admin_count is the size. name and email are both null for someone who has left the organization.

emailstring,null
is_adminboolean

Always true here.

namestring,null
user_idstring
created_atstring · date-time
descriptionstring,null
idstring

Team id (team_…).

member_countinteger

How many people are in the team, counted server-side with one aggregate. This row carries no roster array to measure — GET /team/{id}/member is the roster.

member_previewobject[]

The same, for the first few members (administrators included, flagged by is_admin). member_count is the size; GET /team/{id}/member is the full, paginated roster.

emailstring,null
is_adminboolean
namestring,null
user_idstring
namestring

Unique within the organization.

updated_atstring · date-time
curl -X PATCH 'https://api.elaichi.ai/team/<id>' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"name":"your_name"}'
const body = {
  "name": "your_name"
};

const response = await fetch('https://api.elaichi.ai/team/<id>', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
import os
import requests

url = "https://api.elaichi.ai/team/<id>"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}
payload = {
    "name": "your_name"
}

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