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

Response

200
application/json

Log Created

The response is of type object.