Sign Up
Loading...

Making a field required in a POST request

Asked by Gabriel on March 22, 2025

How do I make a field required (e.g., prevent Description from being posted as null) when creating a POST endpoint?


Answered by Twidget

Use the Validate commands to check that the field exists and throw an error if it does not. This will return a non‑200 response and prevent the record from being created. See the validate tutorial: https://www.youtube.com/watch?v=FAbQP37ImUI&pp=0gcJCU8JAYcqIYzv

Related Questions