Keywords:
API |
The Group API performs actions related to groups in the Inquisiq LMS. The following methods are available via this API:
- Create group
- Search groups
- Get group details
- Update group
- Delete group
- Get group members
- Attach user(s) to group
- Remove user(s) from group
Create group
HTTP Action |
POST |
||||||||||||||||||||||||||||||
Base URL |
https://[Your Inquisiq LMS Portal URL] |
||||||||||||||||||||||||||||||
Endpoint URL |
/api/group/v2/create |
||||||||||||||||||||||||||||||
Request Parameters |
Example: { "Name": "My Group", "IsSelfJoinAllowed": false, "MembershipIsPublicized": true, "IsFeedActive": true, "IsFeedModerated": false, "ShortDescription": "This is my group.", "LongDescription": null, "SearchTags": null, "Details": [{ "Language": "es-ES", "Name": "Mi grupo", "ShortDescription": "Este es mi grupo.", "LongDescription": null, "SearchTags": null }] } |
||||||||||||||||||||||||||||||
Response |
The id of the group that was created. Example: 123 |
Search groups
HTTP Action |
POST |
|||||||||
Base URL |
https://[Your Inquisiq LMS Portal URL] |
|||||||||
Endpoint URL |
/api/group/v2/search |
|||||||||
Request Parameters |
Example: { "Type": "name", "SearchParam": "My Group" } |
|||||||||
Response |
An array of group objects matching the search criteria. Example: [ { "Id": 123, "IdSite": 2, "Name": "My Group", "PrimaryGroupToken": null, "ObjectGUID": null, "DistinguishedName": null, "Avatar": null, "LanguageSpecificProperties": [ { "LangString": "en-US", "Name": "My Group", "ShortDescription": "This is my group.", "LongDescription": "", "SearchTags": "" } ], "IsSelfJoinAllowed": false, "MembershipIsPublicized": true, "IsFeedActive": true, "IsFeedModerated": false, "ShortDescription": "This is my group.", "LongDescription": null, "SearchTags": null, "IsCallingUserAMember": false, "NumberOfMembers": 2 } ] |
Get group details
HTTP Action |
GET |
Base URL |
https://[Your Inquisiq LMS Portal URL] |
Endpoint URL |
/api/group/v2/{id} |
Request Parameters |
NONE |
Response |
A group object matching the {id} of the group. Example: { "Id": 123, "IdSite": 2, "Name": "My Group", "PrimaryGroupToken": null, "ObjectGUID": null, "DistinguishedName": null, "Avatar": null, "LanguageSpecificProperties": [ { "LangString": "en-US", "Name": "My Group", "ShortDescription": "This is my group.", "LongDescription": "", "SearchTags": "" } ], "IsSelfJoinAllowed": false, "MembershipIsPublicized": true, "IsFeedActive": true, "IsFeedModerated": false, "ShortDescription": "This is my group.", "LongDescription": null, "SearchTags": null, "IsCallingUserAMember": false, "NumberOfMembers": 2 } |
Update group
HTTP Action |
PUT |
||||||||||||||||||||||||||||||
Base URL |
https://[Your Inquisiq LMS Portal URL] |
||||||||||||||||||||||||||||||
Endpoint URL |
/api/group/v2/{id} |
||||||||||||||||||||||||||||||
Request Parameters |
Example: { "Name": "My Group", "IsSelfJoinAllowed": false, "MembershipIsPublicized": true, "IsFeedActive": true, "IsFeedModerated": false, "ShortDescription": "This is my group.", "LongDescription": null, "SearchTags": null, "Details": [{ "Language": "es-ES", "Name": "Mi grupo", "ShortDescription": "Este es mi grupo.", "LongDescription": null, "SearchTags": null }] } |
||||||||||||||||||||||||||||||
Response |
The id of the group that was updated. Example: 123 |
Delete group
HTTP Action |
DELETE |
Base URL |
https://[Your Inquisiq LMS Portal URL] |
Endpoint URL |
/api/group/v2/{id} |
Request Parameters |
NONE |
Response |
NONE (200 - OK) |
Get group members
HTTP Action |
GET |
Base URL |
https://[Your Inquisiq LMS Portal URL] |
Endpoint URL |
/api/group/v2/{id}/users |
Request Parameters |
NONE |
Response |
An array of user objects who are members of the group specified by {id}. Example: [ { "Id": 7, "FirstName": "Group", "LastName": "User", "Username": "groupuser", "Email": "groupuser@myorganization.tld", "Avatar": null } ] |
Attach user(s) to group
HTTP Action |
POST |
||||||
Base URL |
https://[Your Inquisiq LMS Portal URL] |
||||||
Endpoint URL |
/api/group/v2/{id}/attachusers |
||||||
Request Parameters |
Example: { "UserIds": [ 123 ] } |
||||||
Response |
NONE (200 - OK) |
Remove user(s) from group
HTTP Action |
POST |
||||||
Base URL |
https://[Your Inquisiq LMS Portal URL] |
||||||
Endpoint URL |
/api/group/v2/{id}/removeusers |
||||||
Request Parameters |
Example: { "UserIds": [ 123 ] } |
||||||
Response |
NONE (200 - OK) |
Comments
0 comments
Please sign in to leave a comment.