Skip to content

Instantly share code, notes, and snippets.

@markdon
Created February 7, 2019 22:06
Show Gist options
  • Select an option

  • Save markdon/dd32724f2e5b317aeb80403fb35c2843 to your computer and use it in GitHub Desktop.

Select an option

Save markdon/dd32724f2e5b317aeb80403fb35c2843 to your computer and use it in GitHub Desktop.
Create a comment with Boards API
fetch(`./node`, {
method: "POST",
headers:{"Content-Type":"application/json"},
body:`{
"boardId" : "${Boards.current.boardNode.id}",
"priv" : 0,
"parentId" : "${Boards.current.node.id}",
"position" : 1000000,
"template" : 0,
"commonType" : "reply",
"name" : "Test creating a comment with API",
"description" : "Test creating a comment with API",
"assignedToUsers" : [],
"boardsMeta" : null
}`
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment