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: Account Owners 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>
Get Team Admins for a Team
Returns a list of users assigned to a Team and marked as Team Admin
Access Level: Administrators Only
Request Uri
GET /teams/{team-id}/admins
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.
Promote a user to Team Admin
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}/admins/{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.
Remove a Team Admin 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}/admins/{user-id}
Response
Returns a HTTP status code 200 on success. 404 if the user is not a member of the team.
Comments
0 comments
Article is closed for comments.