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

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": "3952052265102141025653390780150",
"Name": "",
"DateCreated": "2024-04-23T20:31:00-07:00",
"UserIds": [
"3952052265102141025653390050322",
"3952052265102141025653391921761",
"3952052265102141025653391746402"
]
}

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": "3952052265104446868662604758586",
"Name": "",
"DateCreated": "2024-04-23T20:31:00-07:00",
"UserIds": [
"3952052265104446868662604640890",
"3952052265104446868662604806568",
"3952052265104446868662605360992"
]
},
{...},
{...}
]