Skip to main content

Create audit log

Create new audit logs in a batch.

Path Parameters
    orgId string required
Request Body required
    logs object[]
  • Array [
  • id A unique identifier of the audit log if not supplied will be autogenerated
    source Source service generating the event required

    The source service generating the event.

    action Action performed, e.g. project.create, user.update, serviceuser.delete required
    actor object
    id string
    type string
    name string
    target object
    id string
    type string
    name string
    context object
    property name* string
    createdAt date-time

    The time the log was created.

  • ]
Responses

A successful response.


Schema

    object

POST /v1beta1/organization/:orgId/auditlogs

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
orgId — path required
Body required
{
"logs": [
{
"id": "string",
"source": "auth",
"action": "string",
"actor": {
"id": "string",
"type": "string",
"name": "string"
},
"target": {
"id": "string",
"type": "string",
"name": "string"
},
"context": {},
"createdAt": "2023-06-07T05:39:56.961Z"
}
]
}
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organization/:orgId/auditlogs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"logs": [
{
"id": "string",
"source": "auth",
"action": "string",
"actor": {
"id": "string",
"type": "string",
"name": "string"
},
"target": {
"id": "string",
"type": "string",
"name": "string"
},
"context": {},
"createdAt": "2023-06-07T05:39:56.961Z"
}
]
}'