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.

Assemble sample hierarchy

Click here 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:
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)

Responses

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

Response samples

Content type
application/json
{
  • "data": [
    • {
      • "id": "3521",
      • "display_name": "Headquarters",
      • "parent_id": 0,
      • "name": "string",
      • "description": "string",
      • "geo_location": "string",
      • "catchment_area_id": "string",
      • "icon": "string",
      • "show_on_public_site": true,
      • "ceiling_enabled": true,
      • "public_url": "http://example.com",
      • "hidden": true,
      • "disabled": true,
      • "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:
Request Body schema: application/json
parent_id
integer Nullable

ID of the parent team

name
string

Teams name

description
string

Description of the team

geo_location
string Nullable

Geo location ID

catchment_area_id
string Nullable

Catchment area id

icon
string

FontAwesome 4 icon class

show_on_public_site
boolean

Determine if this team should appear on the public site

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
{
  • "parent_id": 0,
  • "name": "string",
  • "description": "string",
  • "geo_location": "string",
  • "catchment_area_id": "string",
  • "icon": "string",
  • "show_on_public_site": true,
  • "ceiling_enabled": true,
  • "hidden": true,
  • "disabled": true,
  • "external_reference": "string"
}

Response samples

Content type
application/json
{
  • "data": {
    • "id": "3521",
    • "display_name": "Headquarters",
    • "parent_id": 0,
    • "name": "string",
    • "description": "string",
    • "geo_location": "string",
    • "catchment_area_id": "string",
    • "icon": "string",
    • "show_on_public_site": true,
    • "ceiling_enabled": true,
    • "public_url": "http://example.com",
    • "hidden": true,
    • "disabled": true,
    • "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:
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 teams unique id

display_name
string

Team display name

parent_id
integer Nullable

ID of the parent team

name
string

Teams name

description
string

Description of the team

geo_location
string Nullable

Geo location ID

catchment_area_id
string Nullable

Catchment area id

icon
string

FontAwesome 4 icon class

show_on_public_site
boolean

Determine if this team should appear on the public site

ceiling_enabled
boolean

Determine if ceilings is enabled for this team

public_url
string <uri> Nullable

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": 0,
    • "name": "string",
    • "description": "string",
    • "geo_location": "string",
    • "catchment_area_id": "string",
    • "icon": "string",
    • "show_on_public_site": true,
    • "ceiling_enabled": true,
    • "public_url": "http://example.com",
    • "hidden": true,
    • "disabled": true,
    • "external_reference": "string",
    • "children": [
      • {
        • "id": "3521",
        • "display_name": "Headquarters",
        • "parent_id": 0,
        • "name": "string",
        • "description": "string",
        • "geo_location": "string",
        • "catchment_area_id": "string",
        • "icon": "string",
        • "show_on_public_site": true,
        • "ceiling_enabled": true,
        • "public_url": "http://example.com",
        • "hidden": true,
        • "disabled": true,
        • "external_reference": "string"
        }
      ]
    }
]

Show existing team

Retrieve an existing teams information

Authorizations:
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": 0,
    • "name": "string",
    • "description": "string",
    • "geo_location": "string",
    • "catchment_area_id": "string",
    • "icon": "string",
    • "show_on_public_site": true,
    • "ceiling_enabled": true,
    • "public_url": "http://example.com",
    • "hidden": true,
    • "disabled": true,
    • "external_reference": "string"
    }
}

Update a team

Update an existing teams information.

The information you can update will depend on your permissions.

Authorizations:
path Parameters
id
required
string
Example: 21321

Team ID

Request Body schema: application/json
parent_id
integer Nullable

ID of the parent team

name
string

Teams name

description
string

Description of the team

geo_location
string Nullable

Geo location ID

catchment_area_id
string Nullable

Catchment area id

icon
string

FontAwesome 4 icon class

show_on_public_site
boolean

Determine if this team should appear on the public site

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
{
  • "parent_id": 0,
  • "name": "string",
  • "description": "string",
  • "geo_location": "string",
  • "catchment_area_id": "string",
  • "icon": "string",
  • "show_on_public_site": true,
  • "ceiling_enabled": true,
  • "hidden": true,
  • "disabled": true,
  • "external_reference": "string"
}

Response samples

Content type
application/json
{
  • "data": {
    • "id": "3521",
    • "display_name": "Headquarters",
    • "parent_id": 0,
    • "name": "string",
    • "description": "string",
    • "geo_location": "string",
    • "catchment_area_id": "string",
    • "icon": "string",
    • "show_on_public_site": true,
    • "ceiling_enabled": true,
    • "public_url": "http://example.com",
    • "hidden": true,
    • "disabled": true,
    • "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:
path Parameters
id
required
string
Example: 21321

Team ID

Responses

Response samples

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