---
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 — The logger name.
  - `level` integer — The log level.
  - `message` string — The log message.
  - `timestamp` string, date-time — The log timestamp.
  - `flow_run_id` string, uuid — The flow run ID associated with the log.
  - `task_run_id` string, uuid — The task run ID associated with the log.

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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