---
title: "PATCH /api/v4/jobs/{id}/trace"
method: PATCH
path: "/api/v4/jobs/{id}/trace"
tags: ["jobs"]
---

# PATCH /api/v4/jobs/{id}/trace

`PATCH /api/v4/jobs/{id}/trace`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/jobs/{id}/trace`
- Auth: none declared

Append a patch to the job trace

## Path parameters

- `id` integer, required

## Request body

- PatchApiV4JobsIdTrace: Append a patch to the job trace
  - `token` string: Job's authentication token
  - `debug_trace` boolean: Enable or disable the debug trace

## Response `202`

Trace was patched

## Other responses

- `400`: Missing Content-Range header
- `403`: Forbidden
- `416`: Range not satisfiable
- `429`: Too Many Requests

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
