Hey everyone, I need to make a `PATCH` call from N...
# suitescript
d
Hey everyone, I need to make a
PATCH
call from NetSuite. I've already tried the POST with
Copy code
"X-HTTP-Method-Override": "PATCH"
in the header .. no go. Really don't want to use a proxy. Any other ideas?
c
From what i've read, what you tried is what you are supposed to do. It may be that the host doesn't accept it in which case I would see if there's a post/put that accomplishes it. If it's stuck with a patch, you may have to do a relay.
👍 1
e
I had the same issue last year with an integration, and the api relay was the solution we had to go with.
d
@Eric Schultz, did you build your own, or use a service?
e
Built our own in AWS API Gateway
d
Right, then you .. POST to your AWS API Gateway, and pipe it to a PATCH? Any security concerns? How do you pass credentials to be used during the PATCH?
e
Yes we send a POST requests to AWS and then its converted to a PATCH on for the integration. This solution is only for the Patch requirements. All others (GET, POST PUT DELETE) we just call the integration directly. As for a bit of security, our AWS API does have a security api key as well preventing it from being public. And when it comes to the integration API the vendor requires authentication as an encoded token string in the header. This is simply sent in the AWS request and passed along as well in the relay
d
Nice work @Eric Schultz, appreciate the approach!
keanu thanks 1
e
Good luck on your project @darrenhillconsulting
👍 1