Last updated 6 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": [ "text" ], "vps": [ "text" ] }), }); const data = await response.json();
{ "code": 0, "message": "text" }