---
title: "Update Request Log"
method: PATCH
path: "/v1/request-logs/{log_id}"
tags: ["request-logs"]
---

# Update Request Log

`PATCH /v1/request-logs/{log_id}`

Update a request log with response data.

This is typically called when a request completes to add the response details.
Only the fields provided in the request body will be updated.
The log must belong to a machine owned by the authenticated organization.

## Path parameters

- `log_id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- RequestLogUpdate — Schema for updating a request log
  - `status_code` integer, nullable
  - `response_size_bytes` integer, nullable
  - `completed_at` string, date-time, nullable
  - `duration_ms` integer, nullable
  - `error_message` string, nullable

## Response `200`

Successful Response

- RequestLogResponse — Request log response schema
  - `request_id` string, required
  - `method` string, required
  - `path` string, required
  - `status_code` integer, nullable
  - `request_size_bytes` integer, nullable
  - `response_size_bytes` integer, nullable
  - `duration_ms` integer, nullable
  - `error_message` string, nullable
  - `id` string, uuid, required
  - `machine_id` string, uuid, required
  - `organization_id` string, nullable
  - `created_at` string, date-time, required
  - `completed_at` string, date-time, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/cyberdesk-hq/apis/cyberdesk-cloud.md) · [All operations](https://skmtc.net/cyberdesk-hq/apis/cyberdesk-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cyberdesk-hq/cyberdesk-cloud/versions/830d2f48963d/schema)
