Download OpenAPI specification:Download
This documentation describes how to retrieve and update information relating to your organisations teams.
Assemble supports an unlimited level and number of teams, sometimes referred to as hierarchy locations. Teams allow you to configure Assemble to reflect the structure of your organisation.
In addition to roles, each user must be placed in a team within your organisation. This will determine who can manage them and, if they are a supervisor, who they can manage. Therefore, it is important to make sure that your teams are configured in a logical manner that best fits your organisation.
Below is an example team structure a national organisation may have.
Please see our support centre to find more information about teams.
Retrieve a paginated list of teams.
The response will only include teams that the authenticated user has access to.
q | string Search teams by name and unique custom fields |
hidden | boolean Default: false Include or exclude hidden teams |
rota | boolean Only include teams that have a rota |
include | string Enum: "parent" "children" "location" "attributes" "catchment_area" Available includes for a team (comma separated list) |
external_reference | string Example: external_reference=9986,9987 Filter by external_reference field (comma separated list) |
Array of objects (Team) | |
object |
{- "data": [
- {
- "id": "3521",
- "display_name": "Headquarters",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string"
}
], - "meta": {
- "pagination": {
- "total": "string",
- "count": "string",
- "per_page": "string",
- "current_page": "string",
- "total_pages": "string",
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Create a new team
id | string The unique ID of the Team record |
parent_id | integer or null ID of the parent team |
name | string Teams name |
description | string Description of the team |
geo_location | string or null Geo location ID |
catchment_area_id | string or null Catchment area id |
icon | string FontAwesome 4 icon class |
show_on_public_site | boolean Determine if this team should appear on the public site |
show_on_near_me_map | boolean Determine if this team should appear on a volunteer's "Near me" map |
ceiling_enabled | boolean Determine if ceilings is enabled for this team |
hidden | boolean Determine if this team has been hidden |
disabled | boolean Determine if this team is disabled for the current authenticated user |
external_reference | string Teams external reference |
object (Team) Detailed team information |
{- "id": "3521",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string"
}
{- "data": {
- "id": "3521",
- "display_name": "Headquarters",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string"
}
}
Retrieve a recursive response of teams.
You can optionally pass a team id in the path to specifiy the starting point of the recursion (i.e /organisation/teams/recursive/{teamId}
).
The response may include teams that the authenticated user cannot manage but are required to be in the response in order for the recursive structure to exist. These teams will be marked as disabled
.
mine | boolean Determine if we should only display the authenticated users teams |
include | string Enum: "parent" "children" "location" "attributes" "catchment_area" Available includes for a team (comma separated list) |
id | string The unique ID of the Team record |
display_name | string Team display name |
parent_id | integer or null ID of the parent team |
name | string Teams name |
description | string Description of the team |
geo_location | string or null Geo location ID |
catchment_area_id | string or null Catchment area id |
icon | string FontAwesome 4 icon class |
show_on_public_site | boolean Determine if this team should appear on the public site |
show_on_near_me_map | boolean Determine if this team should appear on a volunteer's "Near me" map |
ceiling_enabled | boolean Determine if ceilings is enabled for this team |
public_url | string or null <uri> Teams public URL |
hidden | boolean Determine if this team has been hidden |
disabled | boolean Determine if this team is disabled for the current authenticated user |
external_reference | string Teams external reference |
Array of objects (Team) The teams children. Recursively. |
[- {
- "id": "3521",
- "display_name": "Headquarters",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string",
- "children": [
- {
- "id": "3521",
- "display_name": "Headquarters",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string"
}
]
}
]
Retrieve an existing teams information
id required | string Example: 21321 Team ID |
object (Team) Detailed team information |
{- "data": {
- "id": "3521",
- "display_name": "Headquarters",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string"
}
}
Update an existing teams information.
The information you can update will depend on your permissions.
id required | string Example: 21321 Team ID |
id | string The unique ID of the Team record |
parent_id | integer or null ID of the parent team |
name | string Teams name |
description | string Description of the team |
geo_location | string or null Geo location ID |
catchment_area_id | string or null Catchment area id |
icon | string FontAwesome 4 icon class |
show_on_public_site | boolean Determine if this team should appear on the public site |
show_on_near_me_map | boolean Determine if this team should appear on a volunteer's "Near me" map |
ceiling_enabled | boolean Determine if ceilings is enabled for this team |
hidden | boolean Determine if this team has been hidden |
disabled | boolean Determine if this team is disabled for the current authenticated user |
external_reference | string Teams external reference |
object (Team) Detailed team information |
{- "id": "3521",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string"
}
{- "data": {
- "id": "3521",
- "display_name": "Headquarters",
- "parent_id": 1424,
- "name": "Headquarters",
- "description": "string",
- "geo_location": "string",
- "catchment_area_id": "string",
- "icon": "fa fa-building",
- "show_on_public_site": false,
- "show_on_near_me_map": false,
- "ceiling_enabled": false,
- "hidden": false,
- "disabled": false,
- "external_reference": "string"
}
}
Hide a team.
You can only hide a team that has no active children, no active users and no active opportunities.
id required | string Example: 21321 Team ID |
{- "message": "400 Bad request",
- "status_code": "400"
}