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:
jenjac
2019-03-04 14:55:51 -06:00
committed by Scott Knight
parent b50412f80a
commit 8e0d722d61
10 changed files with 31 additions and 12 deletions

View 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@-