The default profile for the specified policy type:

GET

Returns the GUID for the default profile.

Example request

Request

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

Response

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

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

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
CODE

DELETE

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

Example request

Request

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

Response

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