Less Annoying CRM logo Less Annoying CRM LACRM
Settings Functions

Teams

Teams are used to organize user permissions in your account. You can read more about how teams work in the CRM here.

Create a team

Create a team to organize users.

How to call this function
Function name
CreateTeam
Parameters
Name Text Required

The name of the team.

UserIdList Array of Uids

If passed, this parameter will set the users in the team equal to the contents of the array. This means that if you pass an empty array, all users will be removed from that team.

Response
{
"TeamId": "3942184893078273370894246858516"
}

Delete a team

This function will delete an existing team. Only account owners and administrators can delete teams.

How to call this function
Function name
DeleteTeam
Parameters
TeamId Uid Required

The id of the team.

Response
This function doesn't return anything. If there's no error message returned, that means the call was completed successfully.

Edit a team

You can use this function to rename your team and/or update the list of users in the team.

How to call this function
Function name
EditTeam
Parameters
TeamId Uid Required

The id of the team.

Name Text

The name of the team.

UserIdList Array of Uids

If passed, this parameter will set the users in the team equal to the contents of the array. This means that if you pass an empty array, all users will be removed from that team.

Response
This function doesn't return anything. If there's no error message returned, that means the call was completed successfully.

Get a team

Get a specified team

How to call this function
Function name
GetTeam
Parameters
TeamId Uid Required

The id of the team.

Response
{
"TeamId": "3942184893078273370894245855489",
"Name": "",
"DateCreated": "2024-03-05T06:49:30-08:00",
"UserIds": [
"3942184893078273370894245416298",
"3942184893078273370894246404940",
"3942184893080579213903459852627"
]
}

List teams

Gets all teams on an account if called by an admin, only gets a user's teams otherwise.

How to call this function
Function name
GetTeams
Parameters
This function doesn't take any parameters.
Response
[
{
"TeamId": "3942184893080579213903460137877",
"Name": "",
"DateCreated": "2024-03-05T06:49:30-08:00",
"UserIds": [
"3942184893080579213903460610638",
"3942184893080579213903459447868",
"3942184893080579213903460409411"
]
},
{...},
{...}
]