POST
/
logs
curl --request POST \
  --url https://commerce.driv.ly/api/logs \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "title": "<string>",
  "trace": "<string>",
  "requestBody": {},
  "path": "<string>",
  "method": "<string>",
  "ipAddress": "<string>",
  "userAgent": "<string>",
  "status": "<string>",
  "responseBody": {},
  "responseHeaders": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "requestHeaders": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "data": {
    "id": "<string>",
    "title": "<string>",
    "trace": "<string>",
    "requestBody": {},
    "path": "<string>",
    "method": "<string>",
    "ipAddress": "<string>",
    "userAgent": "<string>",
    "status": "<string>",
    "responseBody": {},
    "responseHeaders": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "requestHeaders": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ]
  },
  "success": true
}

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
id
string

Log is uniquely identified by id

title
string

Log has Title

trace
string

Log has Trace

requestBody
object

Log has Request Body

path
string

Log has Path

method
string

Log has Method

ipAddress
string

Log has IP Address

userAgent
string

Log has User Agent

status
string

Log has Status

responseBody
object

Log has Response Body

responseHeaders
array

Log has Response Header

requestHeaders
array

Log has Request Header

Response

200
application/json

Log Created

data
object
success
boolean