# How to communicate requirements/constraints for POST?

**URL:** <https://discuss.jsonapi.org/t/how-to-communicate-requirements-constraints-for-post/1874>\
**Category:** Uncategorized\
**Created:** [March 18, 2020, 9:53am UTC](https://discuss.jsonapi.org/t/how-to-communicate-requirements-constraints-for-post/1874 "2020-03-18T09:53:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmeeren](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/cmeeren/32/596_2.png) [@cmeeren](https://discuss.jsonapi.org/u/cmeeren)\
**Post date:** [March 18, 2020, 9:53am UTC](https://discuss.jsonapi.org/t/how-to-communicate-requirements-constraints-for-post/1874/1 "2020-03-18T09:53:05Z")

</div>

I am creating a POST endpoint where:

- Field A, B, and C are required and D is optional, but that may change - in the future, only A and B may be required, or D may be required
- Field E has an enumerated set of allowed values which may change (e.g. a set of supported ISO language codes)

Is there a JSON:API-friendly way to communicate this to clients, so that the front-end knows which fields are required for POST, and which values to display in the drop-down for E?

One possible solution is to have a non-JSON:API (or at least not idiomatic) endpoint the client can query to get these constraints in some defined format. Are there better solutions?
