Skip to main content

Group related

Create a Group in a Shift

Creates a new Group in a Shift.

MethodURLAPI key Authentication
POST/PartnerServices/AddGroupToShiftREQUIRED

Request Body Parameters

FieldTypeRequiredDescriptionFormat Allowed
kindlyShiftIdStringShift's ID'.Any string value
partnerGroupNameStringGroup's Name.
*Displayed in the app.
Any string value
partnerGroupTypeIntegerGroup's Type.An integer from 1 to 7
Learn more in Group Type enum
partnerGroupUserCountIntegerThe maximum number of Volunteers that can join the Group.Positive integer, greater than 0
partnerRegisteredUserCountIntegerThe number of non-Kindly Users who are members of the Group.Positive integer, greater than or equal to 0
kindlyUserIdStringThe User ID of the Group Leader.Any string value
partnerGroupIdStringGroup's ID. (from Partner)Any string value
partnerGroupJoinCodeStringGroup's Join Code.Any string value
Example Request Body
{
"kindlyShiftId": "688afa4497bd44ba852f5c5673b365f8",
"partnerGroupName": "The Cool Group",
"partnerGroupType": 4,
"partnerGroupUserCount": 15,
"partnerRegisteredUserCount": 5,
"kindlyUserId":"2c03414c91fc42c28043528edecc4fca",
"partnerGroupId": "0123456789abc",
"partnerGroupJoinCode": "abc123456"
}

Response Status Codes

Status CodeDescription
200 - OKWhen the Group was created successfully.
400 - Bad RequestWhen the request is invalid or missing required parameters.

Scenarios
• Missing API key
• Payload is not set
• Missing required fields
Shift does not exist
Shift does not exist for Partner
Shift has finished
• Field partnerGroupUserCount is less than or equal to 0
Shift does not have any open slots
• Invalid Group Type
• Provided Group Leader is not a registered User
• Field partnerRegisteredUserCount is greater than partnerGroupUserCount
401 - UnauthorizedWhen the API key is incorrect.
409 - ConflictWhen the Partner Group ID is already in use.
420 -When the provided Shift is canceled.
500 - Internal Server ErrorWhen any exception occurred.

Success Response Format

Returns a JSON object containing details of the newly added Group.

FieldTypeDescription
kindlyPartnerGroupIdStringGroup's ID.

Details
To execute more transactions for this Group, you need to manage/store this ID
kindlyShiftIdStringShift ID.
partnerGroupIdStringGroup's ID. (from Partner)
Example Response Body
{
"kindlyPartnerGroupId": "d223d859edae404290fc6d79a393aa24",
"kindlyShiftId": "688afa4497bd44ba852f5c5673b365f8",
"partnerGroupId": "0123456789abc"
}

Remove a Group from its Shift

Removes a Group from its Shift.

MethodURLAPI key Authentication
PUT/PartnerServices/RemoveGroupFromShiftREQUIRED

Request Body Parameters

FieldTypeRequiredDescriptionFormat Allowed
kindlyPartnerGroupIdStringGroup's ID.Any string value
kindlyShiftIdStringShift's ID.Any string value
Example Request Body
{
"kindlyPartnerGroupId": "d223d859edae404290fc6d79a393aa24",
"kindlyShiftId": "688afa4497bd44ba852f5c5673b365f8"
}

Response Status Codes

Status CodeDescription
200 - OKWhen the Group was removed successfully.
400 - Bad RequestWhen the request is invalid or missing required parameters.

Scenarios
• Missing API key
• Payload is not set
• Missing required fields
Shift does not exist
Shift does not exist for Partner
Shift has finished
Group does not exist
• There are Users registered in the Group
401 - UnauthorizedWhen the API key is incorrect.
500 - Internal Server ErrorWhen any exception occurred.

Success Response Format

Returns a boolean value true when the removal is successful.


Update details of a Group

Updates the Group's information.

The fields partnerGroupId and partnerGroupJoinCode are not defined when a Group is created through the app.

MethodURLAPI key Authentication
PUT/PartnerServices/UpdateGroupInShiftREQUIRED

Request Parameters

FieldTypeRequiredDescriptionFormat Allowed
KindlyPartnerGroupIdStringGroup's IDAny string value
kindlyShiftIdStringShift's IDAny string value
partnerGroupNameStringGroup's Name.
*Displayed in the app.
Any string value
partnerGroupTypeIntegerGroup's Type.An integer from 1 to 7
Learn more in Group Type enum
partnerGroupUserCountIntegerThe maximum number of Volunteers that can join the Group.Positive integer, greater than or equal to 0
partnerRegisteredUserCountIntegerThe number of non-Kindly Users who are members of the Group.Positive integer, greater than or equal to 0
kindlyUserIdStringThe User ID of the Group Leader.Any string value
partnerGroupIdStringGroup's ID. (from Partner)Any string value
partnerGroupJoinCodeStringGroup's Join Code.Any string value
Example Request Body
{
"KindlyPartnerGroupId": "d223d859edae404290fc6d79a393aa24",
"kindlyShiftId": "688afa4497bd44ba852f5c5673b365f8",
"partnerGroupName": "The Cool Group",
"partnerGroupType": 4,
"partnerGroupUserCount": 15,
"partnerRegisteredUserCount": 5,
"kindlyUserId":"2c03414c91fc42c28043528edecc4fca",
"partnerGroupId": "0123456789abc",
"partnerGroupJoinCode": "abc123456"
}

Response Status Codes

Status CodeDescription
200 - OKWhen the Group was updated successfully.
400 - Bad RequestWhen the request is invalid or missing required parameters.

Scenarios
• Missing API key
• Payload is not set
• Missing required fields
Shift does not exist
Shift has finished
• Field partnerGroupUserCount is less than or equal to 0
Shift does not have any open slots in order to change the Group slots count
Group does not exist
• Field partnerGroupId is already in use
• Invalid Group Type
• Provided Group Leader is not a registered User
• Field partnerGroupUserCount is less than the count of Users already registered in the Group and/or partnerRegisteredUserCount
401 - UnauthorizedWhen the API key is incorrect.
409 - ConflictWhen the provided Group Leader already owns a Group in the same Shift.
500 - Internal Server ErrorWhen any exception occurred.

Success Response Format

Returns a boolean value true when the update is successful.


Remove an Invited Name from a Group

Removes an Invited Name from a Group.

MethodURLAPI key Authentication
DELETE/PartnerServices/RemoveNameFromGroupREQUIRED

Request Query Parameters

ParameterTypeRequiredDescriptionFormat Allowed
kindlyInvitationIdStringInvited Name's ID.Any string value
Example Query Parameters
?kindlyInvitationId=10473963d373401fa1430096bfb38da7

Response Status Codes

Status CodeDescription
200 - OKWhen the Invited Name was removed successfully.
400 - Bad RequestWhen the request is invalid or missing required parameters.

Scenarios
• Missing API key
• Missing required fields
Shift does not exist
Shift does not exist for Partner
Shift has started
Invited Name does not exist
Invited Name does not exist for Partner
401 - UnauthorizedWhen the API key is incorrect.
500 - Internal Server ErrorWhen any exception occurred.

Get details of an Invited Name

Gets details of an Invited Name, added by the Group Leader.

MethodURLAPI key Authentication
GET/PartnerServices/GetInviteeDetailsREQUIRED

Request Query Parameters

ParameterTypeRequiredDescriptionFormat Allowed
kindlyInvitationIdStringInvited Name ID.Any string value
Example Query Parameters
?kindlyInvitationId=10473963d373401fa1430096bfb38da7

Response Status Codes

Status CodeDescription
200 - OKWhen the details of the Invited Name are retrieved successfully.
400 - Bad RequestWhen the request is invalid or missing required parameters.

Scenarios
• Missing API key
• Missing required fields
Invited Name does not exist
Invited Name does not exist for Partner
401 - UnauthorizedWhen the API key is incorrect.
500 - Internal Server ErrorWhen any exception occurred.

Success Response Format

Returns a JSON object containing the information of the Invited Name.

FieldTypeDescription
firstNameStringInvited Name's First Name.
lastNameStringInvited Name's Last Name.
emailStringInvited Name's Email Address.
isMinorBooleanWhether the Invited Name is a minor.
Example Response Body
{
"firstName": "John",
"lastName": "Doe",
"email": "johndoe@gmail.com",
"isMinor": false
}