#!/bin/bash
source $MICROMDM_ENV_PATH
endpoint="v1/commands"
jq -n \
  --arg request_type "ProfileList" \
  --arg udid "$1" \
  '.udid = $udid
  |.request_type = $request_type
  '|\
  curl \
    -H "Content-Type: application/json" \
    -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
