---
updatedAt: 2025-06-11T23:23:20.000Z
agentTools:
  projectIndex: https://developers.workramp.com/llms.txt
---

# Create Assignment

Create an assignment for a given user

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "json-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://app.workramp.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "ACCESS_TOKEN"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/guides/{GuideID}/assignments": {
      "post": {
        "summary": "Create Assignment",
        "description": "Create an assignment for a given user",
        "operationId": "create-assignment-2",
        "parameters": [
          {
            "name": "GuideID",
            "in": "path",
            "description": "ID of the guide to assign",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "userId"
                ],
                "properties": {
                  "userId": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "dueDate": {
                    "type": "string",
                    "description": "Flexible date format, with a preference for ISO8601 formats, but can accept number of milliseconds since 1970-01-01 00:00:00 UTC.",
                    "format": "date"
                  },
                  "email": {
                    "type": "string",
                    "description": "Optionally pass in an email in case you don't know the userId"
                  },
                  "dueAtEndOfDay": {
                    "type": "boolean",
                    "default": "true",
                    "description": "Specifies whether you want to have the due date set to 11:59:99 of the day chosen."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": \"80afd844-fc64-11e6-8eb3-02dcdaae3a92\",\n  \"userId\": 1144,\n  \"title\": \"Guide 1 Title\",\n  \"courseId\": \"e585fd3e-509d-11e6-9bd0-06d818a6b395\",\n  \"trainingSeriesUserAssignmentId\": null,\n  \"dueDate\": 1487900059000,\n  \"numViewedTasks\": 0,\n  \"numCompletedTasks\": 0,\n  \"numCompletedTestQuestions\": 0,\n  \"numGradedTestQuestions\": 0,\n  \"numCorrectTestQuestions\": 0,\n  \"score\": null,\n  \"isArchived\": null,\n  \"isCompleted\": false,\n  \"createdAt\": 1488141926731.2966,\n  \"updatedAt\": 1488141926731.2966,\n  \"completedAt\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "80afd844-fc64-11e6-8eb3-02dcdaae3a92"
                    },
                    "userId": {
                      "type": "integer",
                      "example": 1144,
                      "default": 0
                    },
                    "title": {
                      "type": "string",
                      "example": "Guide 1 Title"
                    },
                    "courseId": {
                      "type": "string",
                      "example": "e585fd3e-509d-11e6-9bd0-06d818a6b395"
                    },
                    "trainingSeriesUserAssignmentId": {},
                    "dueDate": {
                      "type": "integer",
                      "example": 1487900059000,
                      "default": 0
                    },
                    "numViewedTasks": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "numCompletedTasks": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "numCompletedTestQuestions": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "numGradedTestQuestions": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "numCorrectTestQuestions": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "score": {},
                    "isArchived": {},
                    "isCompleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "createdAt": {
                      "type": "number",
                      "example": 1488141926731.2966,
                      "default": 0
                    },
                    "updatedAt": {
                      "type": "number",
                      "example": 1488141926731.2966,
                      "default": 0
                    },
                    "completedAt": {}
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```