Unsupported Screen Size: The viewport size is too small for the theme to render properly.

New policy with Hexnode API

Mobile Device Management Community Forums Hexnode MDM API New policy with Hexnode API

This topic contains 1 reply, has 2 voices, and was last updated by  Amy Watson 2 weeks, 1 day ago. This post has been viewed 34 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2621 Score: 0

    Henry Wheeler

    Hi! When I try to use Hexnode MDM API to POST a new policy, the response is that the app_managemet and policy_targets arguments cannot be null. They are optional fields, so I’m confused as to why the web server is returning this?
    I’m trying to post a policy name, description and allowwifi = false under Android restrictions.

    #2623 Score: 0

    Amy Watson
    Hexnode MDM

    Hi Henry!
    The two arguments, “app_management” and “policy_targets”, are indeed optional, which implies that the keys need not be used. Try removing them and executing the command in the following sample data format:

    {“name”: “your policy name”,”description”:”test”, “android”:{“restrictions”:{“allow_wifi”:false}}}

    Refer the Hexnode MDM API Documentation for more details.

    Cheers!
    Amy Watson
    Hexnode MDM

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.