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": "3985452232814790256151153660711"
}

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": "3985452232814790256151152938093",
"Name": "",
"DateCreated": "2024-10-08T12:06:27-07:00",
"UserIds": [
"3985452232814790256151154680921",
"3985452232817096099160367487296",
"3985452232817096099160367130433"
]
}

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": "3985452232817096099160367953557",
"Name": "",
"DateCreated": "2024-10-08T12:06:27-07:00",
"UserIds": [
"3985452232819401942169581861569",
"3985452232819401942169581706228",
"3985452232819401942169580392944"
]
},
{...},
{...}
]