Teams (API) - Assign and Unassign Courses to a Team

The following requests relate to Assigning and Unassign Courses to a Team via the Litmos Training Engine API.

Note: All requests must be Authenticated. If you want to list,add & remove courses to a user see People – List, Add & Remove Courses

Assign Courses

Add a list of courses to a Team. If the courses already exist in the team or if the course ids are invalid they will be ignored. Emails will be sent notifying the users of the course assignment providing they have previously logged into their account. It is possible to disable sending course invitation emails by adding the following querystring parameter to the end of the uri : &sendmessage=false.

Access Level: Trainers Only

Request Uri

POST /teams/{teamid}/courses

Request Body

<Courses> 
  <Course> 
   <Id>string [max length 50]</Id> 
   </Course> 
   <Course> 
   <Id>string [max length 50]</Id> 
  </Course> 
</Courses>

Response

Returns a HTTP status code 201 on success

Assign to all sub-teams

Append this to the URI "&includesubteams=true"

 

Unassign Courses

Delete a list of courses to a Team. If the courses do not exist in the team or if the course ids are invalid they will be ignored.

Access Level: Trainers Only

Request Uri

DELETE /teams/{teamid}/courses

Request Body

<Courses> 
  <Course> 
   <Id>string [max length 50]</Id> 
   </Course> 
   <Course> 
   <Id>string [max length 50]</Id> 
  </Course> 
</Courses>

Response

Returns a HTTP status code 201 on success

Have more questions? Submit a request

0 Comments

Article is closed for comments.