How to Make POST Call?

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
I am trying to make first POST call to an endpoint on page load but not sure where to define body? This is not user facing API. I tried to create UI Only model and added the fields. 

Example: On page load, a POST call need to made with below parameters and in response we will get confirmation. Later I would need POST call on an action as well.

Request Parameters: 

Please share thoughts.
Photo of San Prasad

San Prasad

  • 70 Points

Posted 2 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 54,366 Points 50k badge 2x thumb
San, you could use a REST Model to make the request and have the Model set to "Load Model data on page load".

See this tutorial on using REST Models with Skuid: