Zrok Unshare showing 404 error for some resources


I am trying to unshare some of the open shares from a local zrok client which is different from current host.
I am using unshare delete API and got the documentation from specs/zrok.yml

Here is the curl command
Note the ids I got from /overview API and also verified in the frontend ui

curl --location --request DELETE 'https://api.zrok.io/api/v1/unshare' \
--header 'Content-Type: application/zrok.v1+json' \
--header 'X-Token: xxxxxx' \
--data '{"envZId":"xxxxxx,"shrToken":"xxxxxxx"}'

I am getting 404 error code for few resources.

What is the reason for that?

Are you sure that the share exists?

The host you invoke the request from should not matter. The envZId for the share you are trying to delete needs to match the environment where the share was created. If you use a different envZId, the delete request will fail.

That could be your problem.