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

# Create Logs

`POST /api/logs/`

## Request

- The document declares no server URL.
- Auth: none declared

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.dev/prefecthq/apis/prefect-versions-api.md) - [All operations](https://skmtc.dev/prefecthq/apis/prefect-versions-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prefecthq/apis/prefect-versions-api/revisions/a7958ce57e96?raw)
