| { "name": "Microsoft Word", "description": "app description", "categories": [ "Default" ], "roles": [ "AllUsers" ], "schedule": { "enableDeployment": true, "deploySchedule": "NOW", "deployScheduleCondition": "EVERYTIME", "deployDate": "03/14/2024", "deployTime": "17:44", "deployInBackground": false }, "iphone": { "storeUrl": "https://itunes.apple.com/us/app/microsoft-word/id586447913?mt=8", "removeWithMdm": true, "preventBackup": true, "changeManagementState": true, "displayName": "Microsoft Office Word", "description": "Microsoft Office Word app from app store", "rules": "{\"AND\":[{\"eq\":{\"property\":{\"type\":\"DEVICE_PROPERTY\",\"name\":\"sharedStatus\"},\"type\":\"STRING\",\"value\":\"NO_SHARED\"}}]}", "faqs": [ { "question": "Question?", "answer": "Answer", "displayOrder": "1" } ], "storeSettings": { "rate": false, "review": false } }, "android": { "storeUrl": "https://play.google.com/store/apps/details?id=com.microsoft.office.word", "displayName": "Microsoft Office Word", "rules":"{\"AND\":[{\"eq\":{\"property\":{\"type\":\"SOFTWARE\",\"name\":\"name\"},\"type\":\"STRING\",\"value\":\"12345\"}},{\"eq\":{\"property\":{\"type\":\"DEVICE_PROPERTY\",\"name\":\"CORPORATE_OWNED\"},\"type\":\"NUMBER\",\"value\":\"0\"}}]}" }} |
| { "name": "Microsoft Word - Prod", "description": "app description updated", "categories": [ "Default" ], "roles": [ "AllUsers" ], "schedule": { "enableDeployment": true, "deploySchedule": "NOW", "deployScheduleCondition": "EVERYTIME", "deployDate": "", "deployTime": "", "deployInBackground": false }, "iphone": { "rules":"{\"AND\":[{\"eq\":{\"property\":{\"type\":\"SOFTWARE\",\"name\":\"name\"},\"type\":\"STRING\",\"value\":\"12345\"}},{\"eq\":{\"property\":{\"type\":\"DEVICE_PROPERTY\",\"name\":\"CORPORATE_OWNED\"},\"type\":\"NUMBER\",\"value\":\"0\"}}]}", "faqs": [], "storeSettings": { "rate": true, "review": true }, "checkForUpdate": true }} |
The grammar of "Rules" is a bit complicated. Following steps are a copy-paste method and could be used to make the work easier
Create a public store app on Console UI and set "deployment rule" you expect. For example:
Launch develop tool on your web browser, select "Network" tab. Edit the created APP and check the response of request "https://fqdn:4443/controlpoint/rest/application/appstore/XXX", then the "rules" could be found in response body.

Copy "rules" value and fill it in the REST API request.
How to construct "Deployment Rules' for the REST API request to add and update the Public APP Store