Teams – List, Promote & Demote Leaders

The following requests relate to promoting and demoting Team Leaders from Teams via the Litmos Training Engine API.

Note: All requests must be Authenticated.

Get Team Leaders for a Team

Returns a list of users assigned to a Team and marked as Team Leader

Access Level: Administrators Only

Request Uri

GET /teams/{team-id}/leaders

Response

Returns a HTTP status code 200 on success with the following body.

<Users> 
   <User>  
   <Id>string [max length 50]</Id>  
   <UserName>string</UserName>  
   <FirstName>string</FirstName>  
   <LastName>string</LastName>  
   </User>  
   <User>  
   <Id>string [max length 50]</Id>  
   <UserName>string</UserName>  
   <FirstName>string</FirstName>  
   <LastName>string</LastName>  
   </User>  
</Users>

Promote a user to Team Leader

This assumes the user is already assigned to the team. If the user is not a member of the team you will get 404 Not Found status.

Access Level: Administrators Only

Request Uri

PUT /teams/{team-id}/leaders/{user-id}

Response

Returns a HTTP status code 200 on success. 404 if the user is not a member of the team.

Remove a Team Leader from a Team

This assumes the user is already assigned to the team. If the user is not a member of the team you will get 404 Not Found status.

Access Level: Administrators Only

Request Uri

DELETE /teams/{team-id}/leaders/{user-id}

Response

Returns a HTTP status code 200 on success. 404 if the user is not a member of the team.

Have more questions? Submit a request

0 Comments

Article is closed for comments.