URL: /api/files
Create Files
Method: POST
Request Headers
Authorization | A Bearer authorization token, from auth token api. The token must have upload capabilities to create files. Example: Authorization: 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
Method: GET
Request Headers
Authorization | A Bearer authorization token, from auth token api. Example: Authorization: Bearer 123-BodrEJHrC43KejPcM0nzTl05gUMi3i8ruzGN |
Response
{ 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" } }