Api access groups

get

/team/:teamid/groups (authenticated)

Get the groups available for a given team

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. admin
Accepted Restful Arguments

teamid: The id of the team to act on
Returns

{
// The group ID
id: number,
// The group name
name: string,
}

delete

/team/:teamid/group/:groupid (authenticated)

Delete a group

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. admin
Accepted Restful Arguments

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

post

/team/:teamid/group (authenticated)

Add a new group to a team

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. admin
Accepted Body Arguments

{
// name of the new group
The: string,
}
Accepted Restful Arguments

teamid: The id of the team to act on

post

/team/:teamid/group/:groupid (authenticated)

Update a team group

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. admin
Accepted Body Arguments

{
// The group name
name: string,
}
Accepted Restful Arguments

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

post

/team/:teamid/group/:groupid/permission/:permissionid (authenticated)

Add a permission to a group

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. admin
Accepted Restful Arguments

teamid: The id of the team to act on
groupid: undocumented
permissionid: undocumented

delete

/team/:teamid/group/:groupid/permission/:permissionid (authenticated)

Remove a permission from a group

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. admin
Accepted Restful Arguments

teamid: The id of the team to act on
groupid: undocumented
permissionid: undocumented

get

/team/:teamid/group/:groupid/permissions (authenticated)

Get the permissions for a given group

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. admin
Accepted Restful Arguments

teamid: The id of the team to act on
groupid: undocumented
Returns

{
// The name of the permission
name: string,
// The permission description
description: string,
}

get

/team/:teamid/group/:groupid/members (authenticated)

Get the members of a given group

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. admin
Accepted Restful Arguments

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

post

/team/:teamid/group/:groupid/user/:userid (authenticated)

Set the group for a given user

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. admin
Accepted Restful Arguments

teamid: The id of the team to act on
groupid: undocumented
userid: undocumented

get

/permissions (authenticated)

Get all permissions available

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.

Returns

{
// The ID of the permission
id: number,
// The permission name
name: string,
// The permission description
description: string,
}

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