b_poplin
12 years agoExpert
User-level API access to custom content
I can access custom content through API using an Admin role, but I get 303 permission denied with user-level role. API example: [server]/restapi/vc/categories/id/[categoryId]/settings/name/customcont...
- 12 years ago
To get a setting value for a lower-level node such as a category, you'll want to use the REST API. If you're getting a permission denied error, try using the restadmin context object instead of the rest context object. That's the point I'd suggest being careful about. If you're just using a hard-coded REST API path, there shouldn't be any risk assuming you're ok with exposing the content of that setting for everyone. I'd discourage the use of user input to construct the path when using the restadmin context object (ie. query string parameter).