How to make Object type input not required

I have an api endpoint with inputs tide to the columns of a database

id, name (text), external_ids (object with keys 'type' (text) and 'value' (text)

I want all three to be visible to the API but only id to be required.

I've set id to required, name to not required, and external_ids to not required (also set each underlying key to not required.)

For some reason, when testing if I include id only, name passes through fine but external_ids throws an error 'missing_peram'.

Any thoughts on what I'm doing wrong here?

1 reply