Forum Discussion

lorna's avatar
lorna
Maven
11 years ago

Category or board visbility

Hi,

I'm using a custom component to list the categories & nested boards as a navigation menu.

 

We usually have some categories or boards that we hide from menus until they are ready. How can I see this option in REST Api? At the moment it's listing them all..

 

Thanks!

  • AndreyM's avatar
    AndreyM
    Khoros Alumni (Retired)

    Hi Lorna,

     

    I'm assuming you are retrieving the list of the boards with the following call:

    <community-name>/restapi/vc/boards

     

    If you update "Hide from lists and menus" setting on the board, it will not be returned back in boards REST call.

     

    Screen Shot 2014-03-31 at 9.34.23 AM.png

     

    You can check the board visibility by making the following call:

    <community-name>/restapi/vc/boards/id/<board-id>/settings/name/config.hidden

     

    Here's the sample response:

    <response status="success">
        <value type="string">true</value>
    </response>

     

    Hope it helps.

     

    Andrey