Skip to content

Loading…

Changed addStoryComment() request method from PUT to POST #7

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -426,7 +426,7 @@ pivotal.addStoryAttachment = function (projectId, storyId, fileData, cb) {
*/
pivotal.addStoryComment = function (projectId, storyId, comment, cb) {
- pivotal.apiCall("PUT", ["projects", projectId, "stories", storyId, "notes"], null, { note: { text : comment } }, null, cb);
+ pivotal.apiCall("POST", ["projects", projectId, "stories", storyId, "notes"], null, { note: { text : comment } }, null, cb);
};
/**
Something went wrong with that request. Please try again.