---
title: "Create Assignment"
method: POST
path: "/api/v1/guides/{GuideID}/assignments"
---

# Create Assignment

`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`

Create an assignment for a given user

## Path parameters

- `GuideID` string, required

## Request body

- object
  - `userId` integer, required
  - `dueDate` string, date: Flexible date format, with a preference for ISO8601 formats, but can accept number of milliseconds since 1970-01-01 00:00:00 UTC.
  - `email` string: Optionally pass in an email in case you don't know the userId
  - `dueAtEndOfDay` boolean: Specifies whether you want to have the due date set to 11:59:99 of the day chosen.

## Response `200`

200

- object
  - `id` string
  - `userId` integer
  - `title` string
  - `courseId` string
  - `trainingSeriesUserAssignmentId` unknown
  - `dueDate` integer
  - `numViewedTasks` integer
  - `numCompletedTasks` integer
  - `numCompletedTestQuestions` integer
  - `numGradedTestQuestions` integer
  - `numCorrectTestQuestions` integer
  - `score` unknown
  - `isArchived` unknown
  - `isCompleted` boolean
  - `createdAt` number
  - `updatedAt` number
  - `completedAt` unknown

---

[API](https://skmtc.dev/workramp/apis/json-api.md) - [All operations](https://skmtc.dev/workramp/apis/json-api/llms.txt) - [OpenAPI document](https://skmtc.dev/workramp/apis/json-api/revisions/2cb77bf12793?raw)
