Files
micromdm/tools/api/commands/install_appstore_application
Ryunosuke Sato a7ad62ea6c $ chmod +x tools/api/commands/* (#668)
Added executive permission to `tools/api/commands/*` due to run these scripts easily.
2020-05-20 10:01:58 -07:00

15 lines
364 B
Bash
Executable File

#!/bin/bash
source $MICROMDM_ENV_PATH
endpoint="v1/commands"
jq -n \
--arg request_type "InstallApplication" \
--arg udid "$1" \
--arg identifier "$2" \
'.udid = $udid
|.request_type = $request_type
|.identifier = $identifier
'|\
curl $CURL_OPTS \
-H "Content-Type: application/json" \
-u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-