files

Api reference content
post/api/files

Upload a file to be used as source for audio streams. The name of file in AIP Gate's filesystem will be the same of original one. Use the optional parameter 'name' to change it. If file is uploaded as background music, a folder ID must be defined. By default, the upload will fail if the file already exists in category and folder. Use the 'overwrite' parameter to force upload.

Request body

Content typeSchema
multipart/form-data
{
  "file": "binary",
  "category": "string",
  "folder_id": "string",
  "name": "string",
  "overwrite": "string"
}

Responses

StatusDescription
201
Response in headers
["x-aip-id"]
400