Account

Edit a project

Edit a project's name or trace retention.

Requires ADMIN role in the project's workspace (the write service decides). A null trace_ttl_days returns retention to the plan default.

Args: request (Request): Incoming request (rate-limit plumbing). response (Response): Outgoing response (rate-limit plumbing). auth (AccountStampedAuth): Account-scope user auth (session token or CLI access JWT); its resolved user_id becomes the actor. project_id (str): The project to edit. payload (UpdateProjectRequest): The fields to change. _live (None): Write-path liveness gate (blocks a revoked JWT session).

Returns: UpdateProjectResponse: The updated project and the changed fields.

Raises: HTTPException: The write service's 400/403/404/409 verbatim, or a 503 when its response is ambiguous.

patch/api/v1/public/projects/{project_id}

Request

  • Base URL
    https://app.traceroot.ai
  • URL
    https://app.traceroot.ai/api/v1/public/projects/{project_id}
  • Auth
    HTTP bearer

Path parameters

project_idstring required

Request body

namestring
trace_ttl_daysinteger nullable

Trace retention in days (1-365); null returns to the plan default

Response

Successful Response

changedstring[] required
updatedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.