Bundle Paths

A BundlePath is a single bundlepath in the associated Bundle.

Update Bundle Path

Endpoint

PATCH/bundles/{id}/paths/{path}

Return Object

BundlePath

Authorization Requirement

Available to all authenticated keys or sessions.

Request Parameters

ParameterDescription
id
int64
Required
Bundle ID.
path
string
Required
Path to operate on.
recursive
boolean
Required
Allow access to subfolders content?

Example Request

curl https://app.files.com/api/rest/v1/bundles/{id}/paths/{path} \
  -X PATCH \
  -H 'Content-Type: application/json' \
  -d '{"recursive":true}' \
  -H 'X-FilesAPI-Key: YOUR_API_KEY'

Example Response

{
  "recursive": true,
  "path": "example"
}

The BundlePath Object

Some of the endpoints above return a BundlePath object. The attributes of this object are listed below.

AttributeDescription
recursive
boolean
Allow access to subfolders content?
path
string
The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.

Example BundlePath Object

{
  "recursive": true,
  "path": "example"
}