Retrieve a list of all content available on the MDM server

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

To fetch all docs

Endpoints

Request URL

https://{server-hostname}:8383/api/v1/mdm/docs

Scope

MDMDeviceMgmt.READCopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/jsonapplication/jsonCopied!

- Query Parameters

limitintegerOptional

Maximum number of records to return in a single response. Used together with offset for pagination

skip-tokenstringOptional

Pagination continuation token returned by a previous response. Pass it to fetch the next page of results

offsetintegerOptional

Zero-based index of the first record to return. Used together with limit for pagination

delta-tokenstringOptional

Token used for delta/incremental fetches. Pass the token returned from a previous response to retrieve only items modified since that point

doc_typestringOptional

Filter content by document type (e.g., 1=Document, 2=Image, 3=Video, 4=Audio)

tag_namestringOptional

Filter results by tag name

added_timestringOptional

Filter results by the time the resource was added (epoch milliseconds)

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url 'https://appdomain/api/v1/mdm/docs?limit=SOME_INTEGER_VALUE&skip-token=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&delta-token=SOME_STRING_VALUE&doc_type=SOME_STRING_VALUE&tag_name=SOME_STRING_VALUE&added_time=SOME_STRING_VALUE' \
  --header 'Accept: application/json' \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
docsJSON Array

Array of content items available on the MDM server

Show Sub-Attributes
JSON Object
Show Sub-Attributes
doc_idlong

A unique identifier for the document or media

doc_namestring

Name of the document or media

added_timelong

Epoch timestamp (milliseconds) when the document or media was added to the MDM server

updated_timelong

Epoch timestamp (milliseconds) when the document or media was last modified

last_modified_by_namestring

Name of the user who last modified the document or media

last_modified_bylong

User ID of the user who last modified the document or media

created_by_namestring

Name of the user who created the document or media

created_bylong

User ID of the user who created the document or media

sizelong

Document or media size in bytes

doc_typeinteger

Content type identifier

repository_typeinteger

Repository from where the media or document is added

descriptionstring

Content description

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

List of content items available on the MDM server

Copied!
  {
    "docs": [
      {
        "updated_time": 1714717200000,
        "added_time": 1714630800000,
        "size": 6855,
        "doc_name": "Zylker MDM",
        "description": "List of Docs",
        "last_modified_by": 9007199254741036,
        "doc_type": 4,
        "created_by_name": "admin",
        "doc_id": 9007199254741080,
        "last_modified_by_name": "admin",
        "created_by": 9007199254741036,
        "repository_type": 1
      }
    ]
  }
                
Show full

No content items found on the MDM server

Copied!
  {
    "docs": []
  }
                
Show full

Duration: 1 minute | Threshold: 120 | 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.