GET/POST /public/api/updategroup

Description

Create or update group data

Usage

Request body: { "APIkey": "Company_APIkey", "data": { "Group": [ { "ID": "123", "GroupTitle": "GroupTitle", "Description": "Description" } ], "Permissions": [ { "PermissionDisplayName": "PermissionDisplayName", "PermissionValue": "true/false/null" } ], "Users": [ { "ID": "123", "EmailAddress": "email@address.com" } ], "Roles": [ { "ID": "123", "RoleTitle": "RoleTitle" } ], "Categories": [ { "ID": "123", "CategoryTitle": "CategoryTitle" } ] } } * When specifying a group using only the "GroupTitle" value, if the group is not found, it will be created. * When creating a new group, only the following objects and values are mandatory: "data": { "group": [ { "GroupTitle": "GroupTitle" } ] } * "Group" object: Only one object is read in the array * "Permissions" object If the "Permissions" object is included, permissions not listed in the array will have their values reset. * "Users" object A user profile may be referenced by either it's ID or "EmailAddress" If the "Users" object is included, the group's membership will be set to only the user profiles listed in the array. * "Roles" object A role may be referenced by either it's ID or "RoleTitle" If the "Roles" object is included, only the roles listed in the array will be added the the role list. All others will be removed. * "Categories" object A category may be referenced by either it's ID or "CategoryTitle" If the "Categories" object is included, only the categories listed in the array will be added the the category list. All others will be removed. Response: 200 OK Response body: 123 * The returned value indicates ID of the updated or newly created group.