Skip to content
UneeqUneeqUneeq Docs

Update a team

PUT
/external/v1/organization/{organizationID}/teams/{teamID}
curl --request PUT \
--url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/teams/{teamID}" \
--header "Authorization: Bearer $UNEEQ_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"name": "EMEA Enterprise Sales",
"description": "Enterprise account executives covering Europe, the Middle East and Africa"
}'

Replaces the team’s name and description; both fields are required and must be non-empty. The same uniqueness and 100-character name limit as team creation apply. Renaming a team also updates the team name recorded against the organization’s analytics data. Returns the team as sent. Unknown body fields are ignored.

organizationID
required
string

ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.

Example

org_HYPCX67vaupjhdTn
teamID
required
string format: uuid

ID of a live team in the organization. Must be a lowercase hyphenated UUID.

Media typeapplication/json
object
name
required

New team name, unique among the organization’s live teams (case-sensitive). Longer than 100 characters fails with a 500.

string
>= 1 characters <= 100 characters
description
required

New description. Required and must not be empty; it replaces the current one.

string
>= 1 characters

Example

{
"name": "EMEA Enterprise Sales",
"description": "Enterprise account executives covering Europe, the Middle East and Africa"
}

The team was updated.

Media typeapplication/json
object
id
required

Team ID.

string format: uuid
name
required

Team name.

string
description
required

Team description.

string
tags
required

Deprecated. Teams no longer carry tags; always an empty array. It will be removed on 1 March 2027.

Array<object>
0
object
id
required

Tag ID.

string format: uuid
name
required

Tag name.

string
color
required

Display color, for example a hex code such as #F7F9FB.

string

Example generated

{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"description": "example",
"tags": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"color": "example"
}
]
}

teamID is not a lowercase UUID, or name or description is missing or empty (message invalid request, no error_code).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}

The Authorization header is missing, or the API key is not valid for this organization. A key check that fails on the server is also reported as 401.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}

The team does not exist, was deleted, or is not in this organization (message team does not belong to the requested organization, no error_code).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}

Another live team in the organization already has this name (message A team with this name already exists for your organization, no error_code).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}

The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}
Retry-After
integer
>= 1

Seconds to wait before retrying.

The body is not valid JSON or a field has the wrong type (message unable to decode request body), the name exceeds 100 characters, or the update failed (message unable to updates a requested team). No error_code.

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}