Create Assignment

Create an assignment for a given user

post/api/v1/guides/{GuideID}/assignments

Request

  • Base URL
    https://app.workramp.com
  • URL
    https://app.workramp.com/api/v1/guides/{GuideID}/assignments
  • Auth
    API key in header Authorization

Path parameters

GuideIDstring required

ID of the guide to assign

Request body

userIdinteger required
dueDatestring date

Flexible date format, with a preference for ISO8601 formats, but can accept number of milliseconds since 1970-01-01 00:00:00 UTC.

emailstring

Optionally pass in an email in case you don't know the userId

dueAtEndOfDayboolean

Specifies whether you want to have the due date set to 11:59:99 of the day chosen.

Response

200

idstring
userIdinteger
titlestring
courseIdstring
trainingSeriesUserAssignmentIdunknown
dueDateinteger
numViewedTasksinteger
numCompletedTasksinteger
numCompletedTestQuestionsinteger
numGradedTestQuestionsinteger
numCorrectTestQuestionsinteger
scoreunknown
isArchivedunknown
isCompletedboolean
createdAtnumber
updatedAtnumber
completedAtunknown

Example response

{
  "id": "80afd844-fc64-11e6-8eb3-02dcdaae3a92",
  "userId": 1144,
  "title": "Guide 1 Title",
  "courseId": "e585fd3e-509d-11e6-9bd0-06d818a6b395",
  "dueDate": 1487900059000,
  "createdAt": 1488141926731.2966,
  "updatedAt": 1488141926731.2966
}

Changes

No recorded changes to this operation across all 1 revision of this API.