---
title: "Create Logs"
method: POST
path: "/api/logs/"
tags: ["Logs"]
---

# Create Logs

`POST /api/logs/`

Create new logs from the provided schema.

## Headers

- `x-prefect-api-version` string

## Request body

- LogCreate[]
  - `name` string, required — The logger name.
  - `level` integer, required — The log level.
  - `message` string, required — The log message.
  - `timestamp` string, date-time, required — The log timestamp.
  - `flow_run_id` string, uuid
  - `task_run_id` string, uuid

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/prefecthq/apis/untitled-api-2.md) · [All operations](https://skmtc.net/prefecthq/apis/untitled-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prefecthq/untitled-api-2/revisions/29ba6c4f8837/schema)
