Get all courses and activities for a specific site
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
siteid | numeric | REQUIRED, Passed via URI | |||
coursetype | string | via search string | |||
coursename | string | via search string |
http://devsandbox.targetsolutions.com/v1/sites/{siteid}/courses
http://devsandbox.targetsolutions.com/v1/sites/{siteid}/courses?q={"coursetype":"random coursetype","coursename":"random coursename"}
GET /sites/{siteid}/courses HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: 6f0+7JB8zyYksq+/HD+BHQ==
Cache-Control: no-cache
{ "courses": [ { "courseid": 2, "coursename": "Lead Awareness", "coursetype": "TS Course" }, { "courseid": 4, "coursename": "Advanced HAZWOPER Awareness (MOD #1)", "coursetype": "TS Course" }, { "courseid": 6, "coursename": "HAZMAT Transportation", "coursetype": "TS Course" } ] }
{ "httpcode":200, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901", "developermessage":"The request returned zero results.", "statuscode":901, "status":"ok" }
{ "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" }