Add a new content token (VPP token)

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Add a new VPP content token to the MDM server for managing VPP accounts in Apple App Management

Request URL

https://{server-hostname}:8383/api/v1/mdm/apps/account/vpp

Scope

MDMDeviceMgmt.CREATECopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

Content-TypestringMandatory
application/jsonapplication/jsonCopied!
AcceptstringMandatory
application/jsonapplication/jsonCopied!

- Request Body

application/json
JSON Object
Hide Sub-Attributes
vpp_token_filelongMandatory

The unique ID of the server token file. Upload using Upload File

email_addressstringMandatory

Email ID added to receive notifications about the server token expiry date

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
  --url https://appdomain/api/v1/mdm/apps/account/vpp \
  --header 'Accept: application/json' \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52' \
  --header 'Content-Type: application/json' \
  --data '{"vpp_token_file":121313,"email_address":"sysadmin@zylker.com"}'

Sample Request Body

Add a new VPP content token with notification email

Copied!
  {
    "vpp_token_file": 121313,
    "email_address": "sysadmin@zylker.com"
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
location_namestring

Location name associated with the added content token

expiredboolean

Whether the content token has expired. false = active, true = expired

businessstore_idlong

Unique ID of the content token in the MDM system

organisation_namestring

Organization name associated with the content token

expiry_datelong

Epoch timestamp (milliseconds) when the content token expires

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

VPP account successfully added with token details

Copied!
  {
    "location_name": "Location Name - 2",
    "expired": false,
    "expiry_date": 1639122831000,
    "businessstore_id": 9007199254741896,
    "organisation_name": "Zylker Inc"
  }
                
Show full

Duration: 1 minute | Threshold: 60 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.