---
title: "Api Request Logs Summary Partial Update"
method: PATCH
path: "/api/request-logs/summary/"
tags: ["logs"]
---

# Api Request Logs Summary Partial Update

`PATCH /api/request-logs/summary/`

PATCH handler with superadmin lock and field protection.

Checks:
1. Object lock (is_managed=True -> non-superadmins can't modify)
2. Field protection (non-superadmins can't modify specific fields)

## Headers

- `Authorization` string, required

## Request body

- PatchedCHLogV2ListRequest — Mixin to handle underscore-prefixed field mapping in serializers. This is used when Django annotations require underscore prefixes to avoid name conflicts with original column names, but we want to expose the clean field names in the API response. Usage: 1. Annotate queryset with underscore prefixes: _field_name 2. This mixin automatically maps _field_name -> field_name in to_internal_value 3. The serializer can then use the clean field names normally
  - `id` string
  - `organization_id` string
  - `organization_key_id` string
  - `environment` string
  - `timestamp` string, date-time
  - `start_time` string, date-time
  - `prompt_id` string
  - `prompt_name` string
  - `trace_unique_id` string
  - `customer_identifier` string
  - `customer_name` string
  - `customer_email` string
  - `thread_identifier` string
  - `custom_identifier` string
  - `unique_organization_id` string
  - `log_type` string
  - `prompt_tokens` integer
  - `completion_tokens` integer
  - `total_request_tokens` integer
  - `prompt_cache_hit_tokens` integer
  - `prompt_cache_creation_tokens` integer
  - `reasoning_tokens` integer
  - `cost` number, double
  - `model` string
  - `latency` number, double
  - `tokens_per_second` number, double
  - `time_to_first_token` number, double
  - `routing_time` number, double
  - `status_code` integer
  - `status` string
  - `blurred` boolean
  - `storage_object_key` string
  - `updated_storage_object_key` string
  - `span_workflow_name` string
  - `span_name` string
  - `note` string

## Response `200`

- CHLogV2List — Mixin to handle underscore-prefixed field mapping in serializers. This is used when Django annotations require underscore prefixes to avoid name conflicts with original column names, but we want to expose the clean field names in the API response. Usage: 1. Annotate queryset with underscore prefixes: _field_name 2. This mixin automatically maps _field_name -> field_name in to_internal_value 3. The serializer can then use the clean field names normally
  - `id` string, required
  - `organization_id` string, required
  - `organization_key_id` string, required
  - `environment` string, required
  - `timestamp` string, date-time
  - `start_time` string, date-time
  - `prompt_id` string
  - `prompt_name` string, required
  - `trace_unique_id` string, required
  - `customer_identifier` string, required
  - `customer_name` string
  - `customer_email` string
  - `thread_identifier` string, required
  - `custom_identifier` string
  - `unique_organization_id` string, required
  - `log_type` string, required
  - `prompt_tokens` integer
  - `completion_tokens` integer
  - `total_request_tokens` integer
  - `prompt_cache_hit_tokens` integer
  - `prompt_cache_creation_tokens` integer
  - `reasoning_tokens` integer
  - `cost` number, double
  - `model` string
  - `latency` number, double
  - `tokens_per_second` number, double
  - `time_to_first_token` number, double
  - `routing_time` number, double
  - `status_code` integer
  - `status` string
  - `blurred` boolean
  - `metadata` string, required
  - `scores` string, required
  - `storage_object_key` string
  - `updated_storage_object_key` string
  - `system` string, required
  - `prompt` string, required
  - `completion` string, required
  - `span_workflow_name` string
  - `span_name` string
  - `positive_feedback` string, required
  - `note` string

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
