Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

REST APIs: PATCH hangs - What do you do? (5 Comments)

$
0
0

Topic by Mike Waldron

I was wondering this, but I figured it out, so I thought I'd share. It's in the documentation, but it's not easy to find (search for "HTTP Tunneling"):

In cases where the browser or client application does not support PATCH requests, or network intermediaries block PATCH requests, HTTP tunneling can be used with a POST request by supplying an X-HTTP-Method-Override header.

For example, making a POST request to the incident with ID 22:

https://mysite.example.com/services/rest/connect/v1.3/incidents/22

with the header:

X-HTTP-Method-Override: PATCH

and body:

{
"subject": "Test Subject"
}

updates the incident's subject to Test Subject.

That fixed me right up.


Viewing all articles
Browse latest Browse all 2504

Trending Articles