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

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": "3994137874431253539239843591414",
"Name": "",
"DateCreated": "2024-11-21T01:26:24-08:00",
"UserIds": [
"3994137874431253539239843775327",
"3994137874431253539239842038200",
"3994137874431253539239841993333"
]
}

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": "3994137874431253539239843638359",
"Name": "",
"DateCreated": "2024-11-21T01:26:24-08:00",
"UserIds": [
"3994137874431253539239842974064",
"3994137874433559382249055528112",
"3994137874433559382249056461248"
]
},
{...},
{...}
]