i have collection users in strapi and it has a relation to wyniki collection now inside wyniki collection i want to update isVerify field to true, but i only have the user id how can i using rest api
This topic has been created from a Discord post (1260520002843443241) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
Hello Down 
Not sure to completely understand your use case but I’ll try. Based on what you say, you need to:
- Fetch your
wyniki associated entry. If you have the user id, then you can fetch your user and populate your request with thewyniki relation
/api/user/${userId}?populate=wyniki
Now you should have the ID of your wyniki entry.
await fetch(`/api/wyniki/${wynikyId}`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: {
isVerify: true
}
})
});
Hope that I answered your question 