Description

Get all training assignments for a site

Parameters

Name Type Required Optional Searchable Note
siteid numeric REQUIRED, Passed via URI
userid numeric via search string
firstname string via search string
lastname string via search string
employeeid numeric via search string
transcriptid numeric via search string
courseid numeric via search string
coursename string via search string
coursetype string via search string
startdate datetime via search string
duedate datetime via search string
assignmentcreateddate datetime via search string
assignmentmethod string via search string
coursestatus numeric via search string
startdatestart datetime via search string
startdateend datetime via search string
duedatestart datetime via search string
duedateend datetime via search string
assignmentcreateddatestart datetime via search string
assignmentcreateddateend datetime via search string

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/sites/{siteid}/trainingassignments

Example Request with Search String

http://devsandbox.targetsolutions.com/v1/sites/{siteid}/trainingassignments?q={"userid":"random userid","firstname":"random firstname","lastname":"random lastname","employeeid":"random employeeid","transcriptid":"random transcriptid","courseid":"random courseid","coursename":"random coursename","coursetype":"random coursetype","startdate":"random startdate","duedate":"random duedate","assignmentcreateddate":"random assignmentcreateddate","assignmentmethod":"random assignmentmethod","coursestatus":"random coursestatus","startdatestart":"random startdatestart","startdateend":"random startdateend","duedatestart":"random duedatestart","duedateend":"random duedateend","assignmentcreateddatestart":"random assignmentcreateddatestart","assignmentcreateddateend":"random assignmentcreateddateend"}

Example Header

GET /sites/{siteid}/trainingassignments HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: WxzbmEfDE5JuaLQWIa+awg==
Cache-Control: no-cache

Possible Results Sets

Results Set

{
  "trainingassignments": [
    {
      "course_type": 1,
      	  "course_name": "A Course Name",
      	  "due_date": "June 12 2009 00:00:00",
      	  "start_time": "12:00 AM",
      	  "course_status": "active",
      	  "assignment_method": "Create New Assignment",
      	  "firstname": "Jon",
      	  "start_date": "June 08 2009 00:00:00",
      	  "due_time": "12:00 AM",
      	  "assignment_created_date": "June 08 2009 16:27:30",
      	  "courseid": 64257,
      	  "employeeid": 71353,
      	  "transcriptid": 13117211,
      	  "userid": 1132,
      	  "lastname": "Doe"	
    }  
  ]
}

No Results Set

{
  "httpcode":200,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901",
  "developermessage":"The request returned zero results.",
  "statuscode":901,
  "status":"ok"
}

Access Denied Set

{
  "httpcode":401,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/800",
  "developermessage":"A request was made to a resource that you do not have ownership of.",
  "statuscode":800,
  "status":"access denied"
}