Contents
Export Activity - Plugixa Advanced User Role Editor
GET /plugixa-aure/v1/activity/export
Every entry matching the filters, oldest first, as CSV text inside the JSON answer.
Needs the Edit roles permission: plugixa_aure_edit_roles. Needs Plugixa Advanced User Role Editor Pro with the Activity log feature switched on in Settings: otherwise the route is not registered and answers 404.
Request
GET https://your-site.example/wp-json/plugixa-aure/v1/activity/export?from=2026-11-01&to=2026-11-30
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
actor |
integer |
Entries made by this account id. | |
source |
string |
Where the change came from: screen, restore, import, revert, cli, background, rescue, api or admin. See the table below. |
|
operation |
string |
An exact kind of change, such as role.capabilities or user.roles. |
|
target |
string |
An exact target: a role slug, an account id or a capability. | |
from |
string |
From this UTC date, YYYY-MM-DD. |
|
to |
string |
Up to and including this UTC date, YYYY-MM-DD. |
The filters are those of List Activity. There is no paging: the whole match comes back in one response.
Responses
200 OK. data holds the CSV.
{
"success": true,
"data": {
"filename": "role-activity-2026-11-12.csv",
"csv": "id,time_utc,who,source,change,target,before,after,undone_at\n318,2026-11-12T09:30:00Z,\"Sam Carter\",screen,role.capabilities,editor,\"{\"\"edit_posts\"\":true}\",\"{\"\"edit_posts\"\":true,\"\"install_plugins\"\":true}\",\n"
}
}
| Field | Type | Meaning |
|---|---|---|
data.filename |
string |
A suggested file name |
data.csv |
string |
The CSV, with a header row |
Columns: id, time_utc, who, source, change (the operation), target, before and after (JSON) and undone_at. A cell starting with =, +, - or @ gets a leading ' so spreadsheets do not run it as a formula.
Errors
| Status | Code | When |
|---|---|---|
400 |
rest_invalid_param |
source, from or to is invalid. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-aure/v1/activity/export?from=2026-11-01&to=2026-11-30" \
-u "admin:$WP_APP_PASSWORD"
<?php
$query = http_build_query([
'from' => '2026-11-01',
'to' => '2026-11-30',
]);
$ch = curl_init('https://your-site.example/wp-json/plugixa-aure/v1/activity/export?' . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const query = new URLSearchParams({ from: '2026-11-01', to: '2026-11-30' });
const response = await fetch(`https://your-site.example/wp-json/plugixa-aure/v1/activity/export?${query}`, {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share