Last updated 11 days ago
Add user to group.
Successful Response
Remove user from group.
Fetch group based on group id.
List all groups available in the account.
const response = await fetch('https://connect.decube.io/api/v1/data/acl/group/add_user', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "user_id": "text", "group_id": 0 }), }); const data = await response.json();
{ "detail": [ { "loc": [ "text" ], "msg": "text", "type": "text" } ] }
const response = await fetch('https://connect.decube.io/api/v1/data/acl/group/remove_user', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "user_id": "text", "group_id": 0 }), }); const data = await response.json();
const response = await fetch('https://connect.decube.io/api/v1/data/acl/group?group_id=0', { method: 'GET', headers: {}, }); const data = await response.json();
{ "id": 0, "name": "text", "description": "text", "owner": false, "users": [ "text" ], "policies": [ 0 ] }
const response = await fetch('https://connect.decube.io/api/v1/data/acl/group/list', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "id": 0, "name": "text", "description": "text", "owner": false, "users": [ "text" ], "policies": [ 0 ] } ]