# Create assignment Endpoint: POST /assignments Version: v1 Security: imfKey ## Request fields (application/json): - `user` (string, required) - `type` (string, required) - `name` (string, required) - `maxAttempts` (integer) - `deadline` (string) ## Response 201 fields (application/json): - `id` (string) - `user` (string, required) - `type` (string, required) - `name` (string, required) - `maxAttempts` (integer) - `status` (string) - `assignedAt` (string) - `deadline` (string) - `completedAt` (string) - `progress` (number) - `data` (object) ## Response 400 fields (application/problem+json): - `type` (string) URI reference [[RFC3986](https://tools.ietf.org/html/rfc3986)] that identifies the problem type. It should provide human-readable documentation for the problem type. When this member is not present, its value is assumed to be "about:blank". - `title` (string) Short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer) HTTP status code. - `detail` (string) Human-readable explanation specific to this occurrence of the problem. - `instance` (string) URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.