Create new training assignment for a specific user
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
userid | numeric | REQUIRED, Passed via URI | |||
courseid | numeric | REQUIRED, Passed via URI | |||
notifyassignmentavailable | boolean | OPTIONAL, Passed via BODY | |||
notifyassignmentoverdue | boolean | OPTIONAL, Passed via BODY | |||
startdate | datetime | OPTIONAL, Passed via BODY | |||
duedate | datetime | OPTIONAL, Passed via BODY |
http://devsandbox.targetsolutions.com/v1/trainingassignments/user/{userid}/course/{courseid}
POST /trainingassignments/user/{userid}/course/{courseid} HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: j02TzqG8HHQspb+T3bTOWQ==
Cache-Control: no-cache
{ }
{ "httpcode":201, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/701", "developermessage":"The request has been fulfilled and resulted in a new resource being created. ", "statuscode":701, "status":"created" }
{ "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" }