An example to attach a webhook to a project is given in https://github.com/quire-api/quire-api/issues/35
Could you please also give an example to add a webhook to a task (instead of a project) ? I tried the following:
request({
method: "PUT",
headers: {
"Authorization" : "Bearer " + accessToken,
"Content-Type": "application/x-www-form-urlencoded"
},
url: urlAPI + "/task/id" + "/" + projectID + "/" + newTask.id,
data: JSON.stringify({
addFollowers: ["app"]
})
});
but I systematically receive a 403 (forbidden) error.
Do you have any idea why this would not work ?
2nd question : can you immediately attach a webhook when creating a task, or do you need to do it in two steps (first create the task, then update it) ?
Thank you in advance for your help