I swear I'm about to pull out all my hair. I am able to send the following JSON to Jamf.
{
"displayName": "test prestage delete this",
"isMandatory": true,
"isMdmRemovable": false,
"supportPhoneNumber": "",
"supportEmailAddress": "",
"department": "",
"isDefaultPrestage": false,
"enrollmentSiteId": "97",
"isKeepExistingSiteMembership":false,
"isKeepExistingLocationInformation": false,
"isRequireAuthentication": false,
"authenticationPrompt": "",
"deviceEnrollmentProgramInstanceId": "104",
"skipSetupItems": {
"Biometric": true,
"SoftwareUpdate": false,
"Diagnostics": true,
"iMessageAndFaceTime": true,
"TVRoom": false,
"Passcode": true,
"SIMSetup": true,
"ScreenTime": true,
"RestoreCompleted": true,
"TVProviderSignIn": false,
"Siri": true,
"Restore": true,
"ScreenSaver": false,
"HomeButtonSensitivity": true,
"CloudStorage": true,
"Privacy": true,
"TransferData": true,
"Zoom": true,
"PreferredLanguage": true,
"TVHomeScreenSync": false,
"ExpressLanguage": true,
"AppleID": true,
"DisplayTone": true,
"WatchMigration": true,
"UpdateCompleted": true,
"Appearance": true,
"Android": true,
"Payment": true,
"OnBoarding": true,
"TOS": true,
"Welcome": true,
"TapToSetup": false,
"Location": false
},
"locationInformation": {
"username": "",
"realname": "",
"phone": "",
"email": "",
"room": "",
"position": "",
"departmentId": "-1",
"buildingId": "-1",
"id": "-1",
"versionLock": 1
},
"purchasingInformation": {
"id": "-1",
"isLeased": false,
"isPurchased": true,
"appleCareID": "",
"poNumber": "",
"vendor": "",
"purchasePrice": "",
"lifeExpectancy": 0,
"purchasingAccount": "",
"purchasingContact": "",
"leaseDate": "1970-01-01",
"poDate": "1970-01-01",
"warrantyDate": "1970-01-01",
"versionLock": 1
},
"anchorCertificates": [],
"enrollmentCustomizationId": "0",
"language": "en",
"region": "US",
"isPreventActivationLock": true,
"isEnableDeviceBasedActivationLock": false,
"isAutoAdvanceSetup": false,
"isAllowPairing": true,
"isMultiUser": false,
"isSupervised": true,
"maximumSharedAccounts": 10,
"isConfigureDeviceBeforeSetupAssistant": true,
"names": {
"assignNamesUsing": "Serial Numbers",
"prestageDeviceNames": [],
"deviceNamePrefix": "PRE-",
"deviceNameSuffix": "-SUF",
"singleDeviceName": "",
"isManageNames": true,
"isDeviceNamingConfigured": true
}
}
The server happily responds with a 201 response and the id of the "created" prestage but it never actually gets created. Attempting to GET the id results in a 404 and doesn't ever show up in the web interface.
Anyone have any ideas?
