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