> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rename Team

> Updates the team's display name — owner only

```
PATCH /openapi/memorylake/admin/v1/team
```

Updates the team's display name. Only the **team owner** may do this — the same rule the console applies. Ownership transfer and team deletion are not available through this API.

<Note>
  **Permission required:** team owner (role check, not a grantable permission)
</Note>

### Request Body

<ParamField body="name" type="string" required>
  New display name (1–200 characters)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/admin/v1/team' \
    -H 'Authorization: Bearer sk-xxxxxx' \
    -H 'Content-Type: application/json' \
    -d '{"name": "Acme Research EU"}'
  ```
</RequestExample>

### Response

Returns the updated [Team object](/features/management-api/team/get-team).

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "message": "Operation completed successfully",
    "data": {
      "id": "74be678f61e34ace95530080a6562bfa",
      "name": "Acme Research EU",
      "type": "org",
      "owner_principal_id": "32bc58d62b5c4a05a069d5d083f4dd72",
      "created_at": 1755000000,
      "caller_role": "tenant_owner"
    }
  }
  ```

  ```json Not the owner (403) theme={null}
  {
    "success": false,
    "message": "permission denied",
    "error_code": "ACCESS_DENIED"
  }
  ```
</ResponseExample>
