---
title: "Update Trace"
method: PATCH
path: "/v2/trace/{trace_id}"
tags: ["traces"]
---

# Update Trace

`PATCH /v2/trace/{trace_id}`

Update a trace's metadata fields.

## Path parameters

- `trace_id` string, uuid, required

## Request body

- TraceUpdateRequest
  - `name` string, nullable
  - `description` string, nullable

## Response `200`

Successful Response

- TraceInfoResponse
  - `id` string, uuid, required
  - `job_id` string, uuid, required
  - `task_version_id` string, uuid, nullable
  - `task_slug` string, nullable
  - `task_id` string, uuid, nullable
  - `instance_id` string, uuid, nullable
  - `inference_llm_model_id` string, uuid, nullable
  - `status` string, required
  - `reward` number, nullable
  - `stop_reason` 'done' | 'max_steps' | 'length' | 'timeout' | 'malformed_tool_call'
  - `views` integer
  - `error` string, nullable
  - `evaluation_result` object, nullable
  - `start_time` string, date-time, nullable
  - `end_time` string, date-time, nullable
  - `created_at` string, date-time, required
  - `task_prompt` string, nullable
  - `task_name` string, nullable
  - `name` string, nullable
  - `description` string, nullable
  - `metadata` object
  - `environment` TraceEnvironmentRef
    - `id` string, uuid, required
    - `name` string, required
    - `registry_type` string, nullable
    - `build_id` string, uuid, nullable
    - `build_version` integer, nullable
    - `build_digest` string, nullable
    - `can_view_source` boolean
  - `task` TraceTaskRef
    - `id` string, uuid, required
    - `version_id` string, uuid, required
    - `version_number` integer, nullable
    - `external_id` string, nullable
    - `taskset_id` string, uuid, nullable
    - `taskset_name` string, nullable
    - `scenario` TraceScenarioRef
      - `id` string, uuid, required
      - `name` string, required
      - `registry_id` string, uuid, required
    - `scenario_args` object
  - `model` TraceThumbnailModel
    - `id` string, uuid, required
    - `name` string, required
    - `model_name` string, nullable
    - `provider_name` string, nullable
    - `icon_url` string, nullable
  - `job_name` string, nullable
  - `execution_mode` 'external' | 'cloud' | 'hosted', required
  - `public` boolean
  - `is_owner` boolean
  - `can_edit` boolean

## Other responses

- `400` — Invalid or malformed request
- `401` — Missing or invalid credentials
- `403` — Caller may not access this resource
- `404` — Referenced entity does not exist
- `409` — Resource already exists
- `422` — Validation Error

## Changes

- **2026-09-02** `f4d79d769332` — 1 info
  - added the optional property `model/anyOf[subschema #1: TraceThumbnailModel]/sdk_agent_type` to the response with the `200` status

[Change history](https://skmtc.dev/hud/apis/hud-platform/changes/v2/trace/:trace_id/patch.md)

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) · [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hud/hud-platform/revisions/58558fc733d9/schema)
