mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-11 20:45:32 +08:00
Handle ActivationLockBypassCode Request (#578)
* 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.
This commit is contained in:
10
tools/api/commands/activation_lock_bypass_code
Executable file
10
tools/api/commands/activation_lock_bypass_code
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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@-
|
||||
Reference in New Issue
Block a user