API authorization for dynamic path parameters in the routes

Hello,
I am trying to build a Client(react.js) - API(flask) with auth0.
Now the routes for POST and GET that go to flask look something like this http://localhost:8080/clientid/{id}/action . The id part of the route (in the path) is dynamic. How do I configure these routes for the users with permissions(scopes) to set an authorization?

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.