Contents
On this page

Cancel Role Migration - Plugixa Advanced User Role Editor

DELETE /plugixa-aure/v1/users/migrate

Stop the running move. Accounts already moved stay moved.

Needs the Edit people permission: plugixa_aure_edit_users. Part of the Users feature: when it is switched off in Settings the route is not registered and answers 404.

Request

DELETE https://your-site.example/wp-json/plugixa-aure/v1/users/migrate

Responses

200 OK. data is the move as it now stands.

{
  "success": true,
  "data": {
    "state": "cancelled",
    "from": "subscriber",
    "to": "customer",
    "mode": "replace",
    "total": 1250,
    "processed": 200,
    "changed": 200,
    "actor": 1,
    "started": "2026-11-12 09:30:00",
    "finished": "2026-11-12 09:31:05",
    "message": "Stopped. 200 users had already been moved and stay moved."
  }
}

When no move is running, nothing changes and the current state comes back, also with 200. The fields are those of Get Role Migration.

Errors

Plus the errors every endpoint can return.

Examples

curl -s -X DELETE "https://your-site.example/wp-json/plugixa-aure/v1/users/migrate" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-aure/v1/users/migrate');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST  => 'DELETE',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-aure/v1/users/migrate', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
  },
});
const { data } = await response.json();

Quick Links

Share