Create Note

POST /v1/courses/{course_id}/notes

Path parameters

application/json

Body

New Note Params

  • note object Required

    A note on a course

    Additional properties are allowed.

    Hide note attributes Show note attributes object

Responses

  • 201 application/json

    Note response

    Hide response attribute Show response attribute object
    • data object

      A note on a course

      Additional properties are allowed.

      Hide data attributes Show data attributes object
POST /v1/courses/{course_id}/notes
curl \
 -X POST http://localhost:4000/v1/courses/uuidv4/notes \
 -H "Content-Type: application/json" \
 -d '{"note":{"id":0,"date":"2020-04-20","title":"","content":"","author_id":"","is_pinned":false}}'
Request example
{
  "note": {
    "id": 0,
    "date": "2020-04-20",
    "title": "",
    "content": "",
    "author_id": "",
    "is_pinned": false
  }
}
Response examples (201)
{
  "data": {
    "id": 0,
    "date": "2020-04-20",
    "title": "",
    "content": "",
    "author_id": "",
    "is_pinned": false
  }
}