mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-10 03:16:07 +08:00
* add ActivationLockBypassCode Request * Update mdm.pb.go fixed typo * Update mdm.pb.go add Size method * Update unmarshal_proto.go remove pbc * add api script for activation_lock_bypass_code * update Changelog * Simplify Code I was able to simplify the code as ActivationLockBypassCode does not have any additional fields. * Update command.go Remove ActivationLockBypassCode struct as ActivationLockBypassCode does not include any extra fields.
11 lines
267 B
Bash
Executable File
11 lines
267 B
Bash
Executable File
#!/bin/bash
|
|
source $MICROMDM_ENV_PATH
|
|
endpoint="v1/commands"
|
|
jq -n \
|
|
--arg request_type "ActivationLockBypassCode" \
|
|
--arg udid "$1" \
|
|
'.udid = $udid
|
|
|.request_type = $request_type
|
|
'|\
|
|
curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
|