diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index 47d63f55a..e74043965 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -3415,6 +3415,61 @@ Request Body: + +
This API allows to associate existing clients to a group.
+The clients are listed from the office to which the group is associated.
+If client(s) is already associated with group then API will result in an error.
+POST https://Domain Name/api/v1/groups/{groupId}?command=associateClients
+ POST groups/1?command=associateClients
+Content-Type: application/json
+Request Body:
+{
+ "clientMembers":[1,2]
+}
+
+
+{
+ "officeId": 1,
+ "groupId": 1,
+ "resourceId": 1,
+ "clientMembers": [1,2]
+}
+
+ This API allows to disassociate clients from a group.
+Disassociating a client with group loans results in an error.
+POST https://Domain Name/api/v1/groups/{groupId}?command=disassociateClients
+ POST groups/1?command=disassociateClients
+Content-Type: application/json
+Request Body:
+{
+ "clientMembers":[1,2]
+}
+
+
+{
+ "officeId": 1,
+ "groupId": 1,
+ "resourceId": 1,
+ "clientMembers": [1,2]
+}
+
+