Forum Discussion

wmertens's avatar
wmertens
Expert
12 years ago

How to use metadata with the REST API?

We're using endpoints to write metadata with calls like

'/restapi/vc/messages/id/xxx/metadata/key/foo.bar/set/?value=yyy'

and I'd love to search on those with calls like

'/restapi/vc/posts/for/metadata/key/foo.bar/value/true'

but I'm actually not getting any results with that call. If I try to retrieve the metadata value with

 

'/restapi/vc/posts/for/metadata/key/foo.bar/value/true'

then I just get a 303 permission denied error.

 

However, if you have custom tags enabled you can search for metadata with the key 'modbar.<customtag>' and it works.

 

So is there a permissions model for metadata? Can you set certain keys to be readable/writeable by users?

11 Replies

  • ChhamaJ's avatar
    ChhamaJ
    Khoros Staff
    11 years ago
    This bug has been fixed and the exists call should be working in release versions 14.7 and later. Let me know if there are any questions.

    Regards,
    Chhama