Forum Discussion

vishwajeet_hol's avatar
10 years ago

To Hide the board from lists and menus – set and get API

Hi All,

 

I have created a blog using below rest API call:

http://<community>/restapi/vc/categories/id/<category_id>/nodes/type/key/blog/add

 

Parameters used:  blog.id and blog.title

 

As, we know there is a checkbox for "Hide from lists and menus" while creating and editing any node.

I want to perform the same action (i.e. "Hide from lists and menus" ) while creating/editing a node using rest API call.

 

Please let me know if there is any way.

Thank you.

 

Regards,

Vishwajeet

 

 

  • Hi,

     

    you can switch that by changing the "config.hidden" setting:

     

    http://<community>/restapi/vc/boards/id/<board_id>/settings/name/config.hidden/set?value=true

     

    Cheers,

    Chiara

  • ChiaraS's avatar
    ChiaraS
    Lithium Alumni (Retired)

    Hi,

     

    you can switch that by changing the "config.hidden" setting:

     

    http://<community>/restapi/vc/boards/id/<board_id>/settings/name/config.hidden/set?value=true

     

    Cheers,

    Chiara

    • Hi ChiaraS,

       

      Need some additional information from you.

      By using the rest API call given by you, I can set the value of config.hidden field only for already created boards.

      Now suppose, I am creating a new board through rest API call and I want to set the value of config.hidden field at the same time.

      Is this possible ?

       

      Let me know if there is any way.

       

      Thanks,

      Vishwajeet

      • ChiaraS's avatar
        ChiaraS
        Lithium Alumni (Retired)

        Don't think it's possible in 1 call, you will have the use 2 calls for this...