error updating a human task

I am trying to update a human task using the REST API.

$http.post(bonitaConfig.getBonitaUrl() + '/API/bpm/humanTask/'+taskId, {assigned_id : user_id}) .success(function (data, status, headers, conif) { $log.log('assignHumanTask success ' + JSON.stringify(data) + ' ' + status); deferred.resolve(data); }) .error(function (data, status) { $log.log('assignHumanTask error ' + JSON.stringify(data) + ' ' + status); deferred.reject('error in assignHumanTask'); });

I get the below error

XHR finished loading: POST "https://url:8443/bonita/API/bpm/humanTask/1080006".(anonymous function) assignHumanTask error {"exception":"class org.bonitasoft.web.toolkit.client.common.exception.api.APIMethodNotAllowedException","message":"HTTP method POST METHOD NOT ALLOWED. not allowed for API bpm#humanTask","stacktrace":"[org.bonitasoft.web.rest.server.framework.API.add(API.java:164), org.bonitasoft.web.rest.server.framework.API.runAdd(API.java:156),

Hi.
In the documentation, it says that you need to use “Put” to update a resource, not “Post” :
http://documentation.bonitasoft.com/bpm-api#humantask