Question

Photo of Jonatas Eridani

0

Load or set attribute categories through the API

Hi All,

It doesn't matter what permissions I use, I always get "Categories": [ ] when loading an attribute by using the API (/api/Attributes/{id}), even if it was manually set (WEB).

I don't know how to set or load an attribute category by using the API. Can anyone help me? ;)

Thank you very much.

  • Photo of Tataihono Nikora

    0

    I was only able to get this to work on POST.

    https://github.com/SparkDevNetwork/Rock/blob/0efa424a494ea0e936562058f7114f1fdff3e593/Rock.Rest/Controllers/AttributesController.Partial.cs#L63

    According to this only the POST method supports setting the category.