mirror of
https://github.com/micromdm/micromdm/
synced 2026-06-17 16:55:57 +08:00
13 lines
309 B
Bash
Executable File
13 lines
309 B
Bash
Executable File
#!/bin/bash
|
|
source $MICROMDM_ENV_PATH
|
|
endpoint="v1/commands"
|
|
jq -n \
|
|
--arg request_type "RemoveProfile" \
|
|
--arg udid "$1" \
|
|
--arg identifier $2 \
|
|
'.udid = $udid
|
|
|.identifier = $identifier
|
|
|.request_type = $request_type
|
|
'|\
|
|
curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
|