Enables automated role management by groupsync
Last updated 2 months ago
Default Response
Provides information about the service status.
const response = await fetch('http://admin.m2worlds.io/api/groupsync/healthz', { method: 'GET', headers: {}, }); const data = await response.json();
"text"
const response = await fetch('http://admin.m2worlds.io/api/groupsync/roles/', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
[ { "name": "text", "identifiers": [ "text" ] } ]
const response = await fetch('http://admin.m2worlds.io/api/groupsync/roles/', { method: 'POST', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text", "identifiers": [ "text" ] }), }); const data = await response.json();
{ "roleId": "text" }
const response = await fetch('http://admin.m2worlds.io/api/groupsync/roles/{roleName}', { method: 'PATCH', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify([ "name@gmail.com" ]), }); const data = await response.json();
{ "name": "text", "identifiers": [ "name@gmail.com" ] }