Skip to content
Discussion options

You must be logged in to vote

Hey @nithinpachday,

I am using superbase with default PostgREST Apis. but the APIs don't return any id in response to create operation (post-operation)

You need to use the Prefer: return=representation header for returning data after a POST.

For more details, see: https://postgrest.org/en/stable/api.html#insertions-updates

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nithin-pb
Comment options

Answer selected by steve-chavez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants