I want to pass the documentId value when creating an entry

is it okay to pass my value for documentId instead of relying on the one the documents API creates by itself? and if so does it needs to be in a specific format or could it just be a unique value and that’s it ?

This topic has been created from a Discord post (1274076980949549076) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

note: I tried to do that and it accepted it but i asked if is the correct way or the best practice to do it

We don’t plan on allowing passing the documentId yourself as it could cause collisions, if you currently can that’s a bug and one that will most likely be fixed shortly

ok that’s good it will be fixed

I have a webhook that sends data to strapi backend that webhook is giving data from another service.

when I have an update happen I don’t have the documentId so i need to search in strapi first to get its value then do the update

so that’s two requests to the strapi is there a way to do an update by using filters instead of documentId? <@211722558385553408>

I’m in a scenario where i don’t have the documentId

No we don’t have that capability