Hexnode API Post command not working

expand collapsive

Hii, we are facing some problems while testing out the Hexnode APIs. We were able to execute GET APIs successfully but when we try POST it does not execute successfully.
POSt commands tested –
POST https://xyz.hexnodemdm.com/api/v1/actions/associate_policy/
If it helps, we used this as body –

All Replies

  • Hexnode

    Zach Goodman


    Hi @Birgitta, you can avoid this error by fixing the body content. The ‘policies’ key-value should come before the ‘users’ key-value. This way you’ll be associating the policy to the user which is the proper way to query it. 

    Corrected body – 

    Zach Goodman 
    Hexnode UEM