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