Skip to content

Commit c6ff86d

Browse files
authored
fix: Resource Discussion API was using the incorrect url to add a note (#345)
fixes: #342
1 parent facd537 commit c6ff86d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/templates/ResourceDiscussions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class ResourceDiscussions extends BaseService {
2727
encodeURIComponent,
2828
);
2929

30-
return RequestHelper.put(
30+
return RequestHelper.post(
3131
this,
32-
`${rId}/${this.resource2Type}/${r2Id}/discussions/${dId}/notes/${nId}`,
33-
{ body: content, ...options },
32+
`${rId}/${this.resource2Type}/${r2Id}/discussions/${dId}/notes`,
33+
{ body: content, noteId: nId, ...options },
3434
);
3535
}
3636

0 commit comments

Comments
 (0)