Assemble Developer Portal

Teams (3.0)

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.

Sample hierarchy

Please see our support centre to find more information about teams.

Teams

Teams listing

Retrieve a paginated list of teams.

The response will only include teams that the authenticated user has access to.

Authorizations:
JWT
query Parameters
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)

Responses

Response Schema: application/json
Array of objects (Team)
object

Response samples

Content type
application/json
{
  • "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,
      • "public_url": "http://example.com",
      • "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

Create a new team

Authorizations:
JWT
Request Body schema: application/json
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

Responses

Response Schema: application/json
object (Team)

Detailed team information

Request samples

Content type
application/json
{
  • "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"
}

Response samples

Content type
application/json
{
  • "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,
    • "public_url": "http://example.com",
    • "hidden": false,
    • "disabled": false,
    • "external_reference": "string"
    }
}

Teams listing (recursively)

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.

Authorizations:
JWT
query Parameters
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)

Responses

Response Schema: application/json
Array
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.

Response samples

Content type
application/json
[
  • {
    • "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,
    • "public_url": "http://example.com",
    • "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,
        • "public_url": "http://example.com",
        • "hidden": false,
        • "disabled": false,
        • "external_reference": "string"
        }
      ]
    }
]

Show existing team

Retrieve an existing teams information

Authorizations:
JWT
path Parameters
id
required
string
Example: 21321

Team ID

Responses

Response Schema: application/json
object (Team)

Detailed team information

Response samples

Content type
application/json
{
  • "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,
    • "public_url": "http://example.com",
    • "hidden": false,
    • "disabled": false,
    • "external_reference": "string"
    }
}

Update a team

Update an existing teams information.

The information you can update will depend on your permissions.

Authorizations:
JWT
path Parameters
id
required
string
Example: 21321

Team ID

Request Body schema: application/json
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

Responses

Response Schema: application/json
object (Team)

Detailed team information

Request samples

Content type
application/json
{
  • "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"
}

Response samples

Content type
application/json
{
  • "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,
    • "public_url": "http://example.com",
    • "hidden": false,
    • "disabled": false,
    • "external_reference": "string"
    }
}

Hide a team

Hide a team.

You can only hide a team that has no active children, no active users and no active opportunities.

Authorizations:
JWT
path Parameters
id
required
string
Example: 21321

Team ID

Responses

Response samples

Content type
application/json
{
  • "message": "400 Bad request",
  • "status_code": "400"
}