Skip to main content
PUT
/
v3
/
audits
/
{audit}
Update audit
curl --request PUT \
  --url http://localhost/api/v3/audits/{audit} \
  --header 'Content-Type: application/json' \
  --data '
{
  "event": "<string>",
  "auditable_type": "<string>",
  "auditable_id": 123,
  "old_values": [
    "<string>"
  ],
  "new_values": [
    "<string>"
  ],
  "url": "<string>",
  "ip_address": "<string>",
  "user_agent": "<string>",
  "profile_id": "<string>",
  "location_id": 123,
  "staff_id": "<string>"
}
'
{
  "data": {
    "id": 123,
    "user_id": 123,
    "event": "<string>",
    "auditable_type": "<string>",
    "auditable_id": 123,
    "old_values": [
      "<unknown>"
    ],
    "new_values": [
      "<unknown>"
    ],
    "url": "<string>",
    "ip_address": "<string>",
    "profile_id": "<string>",
    "location_id": 123,
    "location": {
      "id": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "external_id": "<string>"
    },
    "staff_id": "<string>",
    "staff": {
      "id": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "email": "<string>"
    },
    "token_name": "<string>",
    "user_agent": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

audit
integer
required

The audit ID

Body

application/json
event
string
auditable_type
string
auditable_id
integer | null
old_values
string[] | null
new_values
string[] | null
url
string | null
ip_address
string | null
user_agent
string | null
profile_id
string | null
location_id
integer | null
staff_id
string | null

Response

Audit

data
Audit · object
required