Update Note

PATCH /v1/courses/{course_id}/notes/{id}

Path parameters

  • id string Required

    Note ID

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

  • 200 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
PATCH /v1/courses/{course_id}/notes/{id}
curl \
 -X PATCH http://localhost:4000/v1/courses/{course_id}/notes/uuidv4 \
 -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 (200)
{
  "data": {
    "id": 0,
    "date": "2020-04-20",
    "title": "",
    "content": "",
    "author_id": "",
    "is_pinned": false
  }
}