HTTP Method

In the case of some calls to the API, methods other than GET and POST must be used. As methods other than GET and POST are often blocked by firewalls, the method can be specified through the X-HTTP-Method-Override header and the POST method can be used to make the call.

Thus, the following calls are equivalent:

Using the PUT method in the method:

PUT {WSUrl}/api/events/<EVENT ID> HTTP/1.1

Host: <hostname>
Authorization: OAuth2 <TOKEN>
Content-Length: 44
Content-Type: application/json

{"Progress" : 10, "Comment" : "Comment" }

 

Using the PUT method through the header:

POST {WSUrl}/api/events/<EVENT ID> HTTP/1.1

Host: <hostname>
Authorization: OAuth2 <TOKEN>
Content-Length: 44
Content-Type: application/json
X-HTTP-Method-Override: PUT

{ "Progress" : 10, "Comment" : "Comment" }