Skip to main content
Skip table of contents

settings/{policytype}-default-profile

The default profile for the specified policy type:

GET

Returns the GUID for the default profile.

Example request

Request

CODE
curl -b c.txt -c c.txt -X GET https://bc.qwe.com/mocana-app-control/rest/settings/browser-default-profile

Response

CODE
{
  "message": "",
  "settings": [{
    "code": "OPT_CODE_DEVICE_POSTURE_PROFILE_DEFAULT",
    "string_data": "d9f88213-6a50-42e3-a84b-de3816e58671"
  }],
  "status": "OK"
}

Note that the settings object in the response JSON would be empty if no default profile is set.

POST

Sets one of the profiles as the default profile for the specified policy type.

Parameters

ParameterDescription
profileIdRequired. The GUID for the profile you want to set as default. You can get the GUID for all available profiles of the specified policy type with the profile/catalog/{policytype} endpoint, for example, GET profile/catalog/dar.

Example request

Request

CODE
curl -b c.txt -c c.txt -X POST https://bc.qwe.com/mocana-app-control/rest/settings/browser-default-profile \
  -d profileId=2b512006-e115-4c8b-92d3-929ee307d17b

DELETE

Resets the default profile, so that there is no default profile of the specified policy type 

Example request

Request

CODE
curl -v -L -b c.txt -c c.txt -X DELETE \
  https://bc.qwe.com/mocana-app-control/rest/settings/client-certs-default-profile

Response

CODE
{
  "message": "",
  "settings": [],    
  "status": "OK" 
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.