Skip to main content
Nintex Community Menu Bar
Question

always include field in REST model PUT operation, even if it hasn't changed


Forum|alt.badge.img+18

My REST api requires that I include a field for certain update (PUT) operations, even if that field hasn’t changed. How can I get skuid to send that field in the request body?

Translate
Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

Forum|alt.badge.img+18
  • Author
  • 2192 replies
  • July 10, 2024

Looks like we can use a snippet to do this by setting “Send updated field values…” to “As custom payload format in request body”

Translate

Forum|alt.badge.img+9
  • Nintex Employee
  • 889 replies
  • July 10, 2024

You may also be able to accomplish this by adding an entry in the “Body parameters to include with every request” setting, on your data source. Doing this would include it with every POST, PUT, and PATCH requests, but not GET requests.

It can also be added at the URL level, with the “URL Parameters to send with every request” setting.

I’m guessing you’ve seen the documentation for REST data sources, but just for completeness, here is the link: https://docs.skuid.com/latest/en/data/rest/index.html

Translate

Forum|alt.badge.img+2
  • 5 replies
  • July 10, 2024

As above you stated that we can send json body parameter in  “Body parameters to include with every request” setting. I am trying the same.I am making a POST query method call. and sending the json body parameter in datasource body parameter. But its not working.4e5f0c43a5460b1522eeb38174a6fba62820a1ff.png
Is this the correct way to send the body parameter? 
Need help ASAP

Translate

Forum|alt.badge.img+9
  • Nintex Employee
  • 889 replies
  • July 10, 2024

Hi Logita,

Can you share any errors you’re seeing in the browser console when you try this? You may also find helpful information by opening the browser’s Network tab about the request header and body, and the response from the data source. Let us know what you see there, and anything else you have found out about the errors you’ve seen. 

Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings