You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST APIs: PATCH hangs - What do you do?

Received Response
19
Views
5
Comments
edited Jul 14, 2016 11:31PM in Integrations and APIs 5 comments

Content

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!