Subteams

get

/divisions/:teamid (authenticated)

Get all divisions of a team, if member_of.

Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.

Required Team Permissions

  1. member_of
Accepted Restful Arguments

teamid: The id of the team to act on

get

/divisions/:teamid/all (authenticated)

Get all divisions of a team, if member_of.

Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.

Required Team Permissions

  1. member_of
Accepted Restful Arguments

teamid: The id of the team to act on

get

/division/:divisionid/team/:teamid/all (authenticated)

Get all members of a team and if they are in the division

Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.

Required Team Permissions

  1. subteam_management
Accepted Restful Arguments

divisionid: undocumented
teamid: The id of the team to act on

post

/division (authenticated)

Creates a new division

Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.

Accepted Body Arguments

{
// the division name
name: string,
// the team id for the division
team_id: integer,
}

post

/division/:divisionid/ (authenticated)

Update division details

Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.

Accepted Body Arguments

{
// the division name
name: string,
// If the division is deleted
deleted: boolean,
}
Accepted Restful Arguments

divisionid: undocumented

post

/division/:divisionid/user/:userid (authenticated)

Updates a users division status

Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.

Accepted Body Arguments

{
// If in division
inDivision: bool,
}
Accepted Restful Arguments

divisionid: undocumented
userid: undocumented

Did you find what you were looking for? Thank you! There was a problem submitting your feedback. Please try again later.