Hi,
I'd like to add some metadata to a file already existing on Alfresco.
I want to do it from a server-side of a node application.
I'm doing a request as following :
var request = require('request')
var r = request.put('http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/'+nodeId+'?alf_ticket='+ticket, function callback(err, httpResponse, body) {
if(err){
return console.log('Error')
}
console.log('Success')
}
var form = r.form()
form.append("myProperty", "myValue")
But it doesn't work, it return an error 400 'Could not read content from HTTP request body: No content to map to Object due to end of input'
I assume that I don't pass the right values, but I don't know how to do it so .. If anyone have a tip 😃
Thanks in advance