own:course permission on the course, or manage:course.core.session_token: ********************Authorization: Bearer ********************curl --location '/courses//materials' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT",
"title": "string",
"topicId": "string",
"content": "string",
"fileUrl": "string",
"fileName": "string",
"linkUrl": "string",
"startAt": "2019-08-24T14:15:22.123Z",
"order": 0,
"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",
"topicId": "string",
"type": "TEXT",
"title": "string",
"content": "string",
"fileUrl": "string",
"fileName": "string",
"linkUrl": "string",
"startAt": "2019-08-24T14:15:22.123Z",
"order": 0,
"attachments": [
{
"id": "string",
"kind": "FILE",
"fileUrl": "string",
"fileName": "string",
"fileSize": 0,
"mimeType": "string",
"linkUrl": "string"
}
],
"isCompleted": true,
"isBookmarked": true,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
}