own:course permission; only the course owner or a co-teacher may create an assignment. The assignment is published immediately and visible to enrolled students on creation.core.session_token: ********************Authorization: Bearer ********************curl --location '/courses//assignments' \
--header 'Content-Type: application/json' \
--data '{
"title": "string",
"topicId": "string",
"description": "string",
"openAt": "2019-08-24T14:15:22.123Z",
"dueAt": "2019-08-24T14:15:22.123Z",
"allowLate": true,
"maxPoints": 1,
"allowedFileTypes": [
"string"
],
"showGrades": true,
"attachments": [
{
"kind": "FILE",
"fileUrl": "string",
"fileName": "string",
"fileSize": 0,
"mimeType": "string"
}
]
}'{
"success": true,
"message": "string",
"meta": {
"page": 0,
"limit": 0,
"total": 0
},
"errors": [
{
"code": "CR-100001",
"field": "string",
"message": "string"
}
],
"result": {
"id": "string",
"courseId": "string",
"topicId": "string",
"title": "string",
"status": "PUBLISHED",
"openAt": "2019-08-24T14:15:22.123Z",
"dueAt": "2019-08-24T14:15:22.123Z",
"allowLate": true,
"maxPoints": 0,
"allowedFileTypes": [
"string"
],
"showGrades": true,
"order": 0,
"submissionCount": 0,
"gradedCount": 0,
"mySubmission": {
"id": "string",
"status": "DRAFT",
"score": 0,
"submittedAt": "2019-08-24T14:15:22.123Z"
},
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z",
"description": "string",
"attachments": [
{
"id": "string",
"kind": "FILE",
"fileUrl": "string",
"fileName": "string",
"fileSize": 0,
"mimeType": "string",
"linkUrl": "string"
}
]
}
}