I am trying to update some properties of an object using the REST interface.
I am able to read the information with the GET request, but when I'm PATCH-ing (MERGE-ing) I always get a 403 Forbidden error.
I am totally new to the REST interface, and frankly, I didn't find any information or example regarding a project server payload or any example for that matter.
This is how the JSON data looks when I GET it from the server:
{
-d: {
-__metadata: {
.........
}
ActualFinish:0001-01-01T00:00:00
ActualOvertime: null
...
PercentComplete: 0 (this is what I want to change to 100)
...
}
}
This is how my payload looks right now:
{d:PercentComplete=100}
It's not working. How the normal payload should look? Do I need any additional headers, other than the
Accept: application/json;odata=verbose
As I said, I didn't find an example for these kind of updates.