Lists all files in the given directory (recursive).
GET /api/service/media/list
directory string
{
"status": {
"code": 0,
"message": "",
"details": [
{
"type_url": "",
"value": ""
}
]
},
"files": [
{
"path": "",
"size": "",
"creationDate": "",
"lastWriteDate": ""
}
]
}
Copies or downloads a file from a remote source to destinations on the local machine. Can be used to populate a Designer project with media files.
POST /api/service/media/provision
{
"mediaPath": "",
"localPath": [
""
],
"uid": "",
"transfers": [
{
"mediaPath": "",
"uid": "",
"localPath": [
""
]
}
]
}
{
"status": {
"code": 0,
"message": "",
"details": [
{
"type_url": "",
"value": ""
}
]
},
"result": [
{
"taskUid": "",
"success": false,
"errorMessage": {
"mediaPath": "",
"localPath": "",
"message": ""
}
}
]
}
Removes a file or a folder from the local machine. Can be used to clear up a Designer project after it is closed.
POST /api/service/media/remove
{
"path": ""
}
{
"status": {
"code": 0,
"message": "",
"details": [
{
"type_url": "",
"value": ""
}
]
},
"taskUid": ""
}