We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cb2352 commit ee66f4aCopy full SHA for ee66f4a
docs/gl_objects/discussions.rst
@@ -70,7 +70,7 @@ You can get and update a single note using the ``*DiscussionNote`` resources::
70
71
discussion = resource.discussions.get(discussion_id)
72
# Get the latest note's id
73
- note_id = discussion.attributes['note'][-1]['id']
+ note_id = discussion.attributes['notes'][-1]['id']
74
last_note = discussion.notes.get(note_id)
75
last_note.body = 'Updated comment'
76
last_note.save()
0 commit comments