Skip to main content
POST
/
v1
/
files
/
Create self-hosted files
curl --request POST \
  --url https://managexrapi.com/v1/files/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "url": "https://my-bucket-name.s3.amazonaws.com/main_assets_all.bundle",
    "name": "main_assets_all.bundle",
    "size": 1204975930,
    "md5": "7ah69cMtXyaz5OfsCRtOjQ==",
    "description": "Content bundle for training app",
    "libraryDirectoryPath": "/com.managexr.demoTrainingApp/"
  },
  {
    "url": "https://my-bucket-name.s3.amazonaws.com/module2-assets.bundle",
    "name": "module2-assets.bundle",
    "size": 1204975930,
    "md5": "7ah69cMtXyaz5OfsCRtOjQ==",
    "description": "Assets for module 2 of training app",
    "libraryDirectoryPath": "/com.managexr.demoTrainingApp/"
  }
]'

Authorizations

Authorization
string
header
required

API key based authentication where <encoded-value> is the Base64 encoding of API_KEY_ID:API_KEY_SECRET

  • Username: The API Key ID.
  • Password: The API Key Secret.

Query Parameters

organizationId
string

Unique identifier of the organization. Defaults to the organization associated with the API key if no id supplied.

Body

application/json · object[]

Array of self-hosted files to create.

url
string<uri>

Publicly accessible direct URL to download the file. ManageXR will use this url to download the file to devices.

Example:

"https://my-bucket-name.s3.amazonaws.com/main_assets_all.bundle"

name
string

Name of the file, including extension

Example:

"main_assets_all.bundle"

size
number

Size of the file in bytes

Example:

1204975930

md5
string

MD5 hash of the file for integrity verification

Example:

"7ah69cMtXyaz5OfsCRtOjQ=="

description
string

Optional description of the file's contents or purpose

Example:

"Content bundle for training app"

libraryDirectoryPath
string

Path to the file in the Library > Files section of ManageXR. A libraryDirectoryPath of "/" indicates that it is at the root of the Files library.

Example:

"/"

I