Skip to main content
POST
/
audit
/
exports
/
schedule
Create a scheduled log or analytics export
curl --request POST \
  --url https://api.artosai.com/audit/exports/schedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "export_type": "<string>",
  "format": "<string>",
  "schedule": {},
  "delivery": {},
  "filters": {},
  "enabled": true
}
'
{
  "export_id": "<string>",
  "name": "<string>",
  "export_type": "<string>",
  "format": "<string>",
  "schedule": {},
  "delivery": {},
  "enabled": true,
  "created_at": "2023-11-07T05:31:56Z",
  "next_execution": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
export_type
string
required

Type of export (audit_logs, analytics, quotas)

format
string
required

Export format (json or txt)

schedule
object
required

Scheduling configuration

delivery
object
required

Delivery method configuration

filters
object

Optional filters applied when exporting

enabled
boolean

Response

201 - application/json

Export schedule created

A scheduled export of logs or analytics.

export_id
string
name
string
export_type
string
format
string
schedule
object
delivery
object
enabled
boolean
created_at
string<date-time>
next_execution
string<date-time>