Skip to content

`POST /api/v1/assignments` — create an assignment.

POST
/api/v1/assignments
curl --request POST \
--url https://example.com/api/v1/assignments \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "modules": [ "example" ], "name": "example", "selector": "example" }'
Media type application/json

Request body for POST /api/v1/assignments.

object
description
string | null
modules
required
Array<string>
name
required
string
selector
required
string
Example generated
{
"description": "example",
"modules": [
"example"
],
"name": "example",
"selector": "example"
}

Assignment created

Media type application/json
Example generated
example

Invalid request body

Assignment already exists