Skip to main content
POST
/
api
/
logs
Create Logs
curl --request POST \
  --url https://api.example.com/api/logs/ \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "name": "<string>",
    "level": 123,
    "message": "<string>",
    "timestamp": "2023-11-07T05:31:56Z",
    "flow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "task_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

x-prefect-api-version
string

Body

application/json
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> | null
task_run_id
string<uuid> | null

Response

Successful Response