Last updated 9 months ago
Migrate policy data asynchronous. Only users with the Standard Registry role are allowed to make the request.
Migration config.
Created task.
const response = await fetch('/api/v1/policies/push/migrate-data', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "policies": { "src": "text", "dst": "text" }, "vcs": [ null ], "vps": [ null ], "schemas": {}, "groups": {}, "roles": {} }), }); const data = await response.json();
{}