No create id or Any other information in Post method of default PostgREST APIs #2569
|
Hi, I tried creating stored procedure in superbase for the same and i returned create id in sp response. but that seems to be a hack and it seems to be difficult to create sp for all tables. Is there any alternative for this issue, i mean any configuration or setting where i can configure the response structure of those APIs? |
Replies: 1 comment 1 reply
|
Hey @nithinpachday,
You need to use the For more details, see: https://postgrest.org/en/stable/api.html#insertions-updates |
Hey @nithinpachday,
You need to use the
Prefer: return=representationheader for returning data after a POST.For more details, see: https://postgrest.org/en/stable/api.html#insertions-updates