The ioGates Files API

Create and retrieve multiple files in one go, offering a streamlined process for bulk file management with support for custom attributes and metadata.

Create Files

URL: /api/files

Method: Post

Request Headers

Authorisation: A Bearer token is required, which is obtained from the auth token API.

Example:

Authorisation: Bearer 123-BodrEJHrC43KejPcM0nzTl05gUMi3i8ruzGN

Request Body

{ files: [
{
name: "My Title",// title
type: "movie", // movie, audio, image, other
attributes: [
{ name: "My Attribute", value: "Some Value"}
]
},
{
name: "My Title 2",// title
type: "movie", // movie, audio, image, other
attributes: [
{ name: "My Attribute", value: "Some Value"}
]
}
]}
  • Upload filename is the name that should be used for uploading. This will trigger the logic to added the file to the create virtual file rather than as a new file.
  • Attributes are the meta tags, shown in ioGates MetaData menu and on shares.

Get Files

URL: /api/files

Method: GET

Request Headers

Authorisation: A Bearer token is required, which is obtained from the auth token API.

Example:

Authorisation: Bearer 123-BodrEJHrC43KejPcM0nzTl05gUMi3i8ruzGN

Request Body

{ 
files: [
{
id: 41527,
name: "My Title",// title
type: "movie", // movie, audio, image, other
parent: 42341, // the id of the parent folder
attributes: [
{ name: "My Attribute", value: "Some Value"}
],
href: ""
},
{
id: 41528,
name: "My Title 2",// title
type: "movie", // movie, audio, image, other
parent: 42341, // the id of the parent folder
attributes: [
{ name: "My Attribute", value: "Some Value"}
],
href: ""
}
],
"map": {
41527: "movie",
41528: "movie"
}
}