Cubic Media API Server

Files

filesCreate

Create a new file


/files

Usage and SDK Samples

curl -X POST "https://cubicapi.frb.io/api/v0.1/files"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

import java.io.File;
import java.util.*;

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        String name = name_example; // String | name field
        Integer parentId = 56; // Integer | parent_id field
        Integer type = 56; // Integer | type field
        File file = /path/to/file.txt; // File | file field
        try {
            File result = apiInstance.filesCreate(name, parentId, type, file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesCreate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        String name = name_example; // String | name field
        Integer parentId = 56; // Integer | parent_id field
        Integer type = 56; // Integer | type field
        File file = /path/to/file.txt; // File | file field
        try {
            File result = apiInstance.filesCreate(name, parentId, type, file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesCreate");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // name field
Integer *parentId = 56; // parent_id field
Integer *type = 56; // type field
File *file = /path/to/file.txt; // file field (optional)

FilesApi *apiInstance = [[FilesApi alloc] init];

// Create a new file
[apiInstance filesCreateWith:name
    parentId:parentId
    type:type
    file:file
              completionHandler: ^(File output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CubicMediaApiServer = require('cubic_media_api_server');

var api = new CubicMediaApiServer.FilesApi()

var name = name_example; // {String} name field

var parentId = 56; // {Integer} parent_id field

var type = 56; // {Integer} type field

var opts = { 
  'file': /path/to/file.txt // {File} file field
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.filesCreate(name, parentId, type, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class filesCreateExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var name = name_example;  // String | name field
            var parentId = 56;  // Integer | parent_id field
            var type = 56;  // Integer | type field
            var file = new File(); // File | file field (optional) 

            try
            {
                // Create a new file
                File result = apiInstance.filesCreate(name, parentId, type, file);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.filesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$name = name_example; // String | name field
$parentId = 56; // Integer | parent_id field
$type = 56; // Integer | type field
$file = /path/to/file.txt; // File | file field

try {
    $result = $api_instance->filesCreate($name, $parentId, $type, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->filesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $name = name_example; # String | name field
my $parentId = 56; # Integer | parent_id field
my $type = 56; # Integer | type field
my $file = /path/to/file.txt; # File | file field

eval { 
    my $result = $api_instance->filesCreate(name => $name, parentId => $parentId, type => $type, file => $file);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FilesApi->filesCreate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.FilesApi()
name = name_example # String | name field
parentId = 56 # Integer | parent_id field
type = 56 # Integer | type field
file = /path/to/file.txt # File | file field (optional)

try: 
    # Create a new file
    api_response = api_instance.files_create(name, parentId, type, file=file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FilesApi->filesCreate: %s\n" % e)

Parameters

Form parameters
Name Description
file
File
file field
name*
String
name field
Required
parent_id*
Integer
parent_id field
Required
type*
Integer
type field
Required

Responses

Status: 200 - OK

Status: 422 - Unprocessable Entityd


filesDelete

Mass file deletion


/files

Usage and SDK Samples

curl -X DELETE "https://cubicapi.frb.io/api/v0.1/files"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

import java.io.File;
import java.util.*;

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        DeleteFileRequestBody deleteFileRequestBody = ; // DeleteFileRequestBody | An object that describe which files to delete.
        try {
            apiInstance.filesDelete(deleteFileRequestBody);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        DeleteFileRequestBody deleteFileRequestBody = ; // DeleteFileRequestBody | An object that describe which files to delete.
        try {
            apiInstance.filesDelete(deleteFileRequestBody);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesDelete");
            e.printStackTrace();
        }
    }
}
DeleteFileRequestBody *deleteFileRequestBody = ; // An object that describe which files to delete. (optional)

FilesApi *apiInstance = [[FilesApi alloc] init];

// Mass file deletion
[apiInstance filesDeleteWith:deleteFileRequestBody
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CubicMediaApiServer = require('cubic_media_api_server');

var api = new CubicMediaApiServer.FilesApi()

var opts = { 
  'deleteFileRequestBody':  // {DeleteFileRequestBody} An object that describe which files to delete.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.filesDelete(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class filesDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var deleteFileRequestBody = new DeleteFileRequestBody(); // DeleteFileRequestBody | An object that describe which files to delete. (optional) 

            try
            {
                // Mass file deletion
                apiInstance.filesDelete(deleteFileRequestBody);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.filesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$deleteFileRequestBody = ; // DeleteFileRequestBody | An object that describe which files to delete.

try {
    $api_instance->filesDelete($deleteFileRequestBody);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->filesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $deleteFileRequestBody = WWW::SwaggerClient::Object::DeleteFileRequestBody->new(); # DeleteFileRequestBody | An object that describe which files to delete.

eval { 
    $api_instance->filesDelete(deleteFileRequestBody => $deleteFileRequestBody);
};
if ($@) {
    warn "Exception when calling FilesApi->filesDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.FilesApi()
deleteFileRequestBody =  # DeleteFileRequestBody | An object that describe which files to delete. (optional)

try: 
    # Mass file deletion
    api_instance.files_delete(deleteFileRequestBody=deleteFileRequestBody)
except ApiException as e:
    print("Exception when calling FilesApi->filesDelete: %s\n" % e)

Parameters

Body parameters
Name Description
deleteFileRequestBody

Responses

Status: 200 - OK

Status: 422 - Unprocessable Entity


filesGet

Get the file by file id


/files/{file}

Usage and SDK Samples

curl -X GET "https://cubicapi.frb.io/api/v0.1/files/{file}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

import java.io.File;
import java.util.*;

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        Integer file = 56; // Integer | File id
        try {
            File result = apiInstance.filesGet(file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        Integer file = 56; // Integer | File id
        try {
            File result = apiInstance.filesGet(file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesGet");
            e.printStackTrace();
        }
    }
}
Integer *file = 56; // File id

FilesApi *apiInstance = [[FilesApi alloc] init];

// Get the file by file id
[apiInstance filesGetWith:file
              completionHandler: ^(File output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CubicMediaApiServer = require('cubic_media_api_server');

var api = new CubicMediaApiServer.FilesApi()

var file = 56; // {Integer} File id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.filesGet(file, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class filesGetExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var file = 56;  // Integer | File id

            try
            {
                // Get the file by file id
                File result = apiInstance.filesGet(file);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.filesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$file = 56; // Integer | File id

try {
    $result = $api_instance->filesGet($file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->filesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $file = 56; # Integer | File id

eval { 
    my $result = $api_instance->filesGet(file => $file);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FilesApi->filesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.FilesApi()
file = 56 # Integer | File id

try: 
    # Get the file by file id
    api_response = api_instance.files_get(file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FilesApi->filesGet: %s\n" % e)

Parameters

Path parameters
Name Description
file*
Integer
File id
Required

Responses

Status: 200 - OK

Status: 404 - Not Found


filesMove

Mass file moving


/files/move

Usage and SDK Samples

curl -X PUT "https://cubicapi.frb.io/api/v0.1/files/move"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

import java.io.File;
import java.util.*;

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        MoveFileRequestBody moveFileRequestBody = ; // MoveFileRequestBody | An object that describe which files to move.
        try {
            apiInstance.filesMove(moveFileRequestBody);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesMove");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        MoveFileRequestBody moveFileRequestBody = ; // MoveFileRequestBody | An object that describe which files to move.
        try {
            apiInstance.filesMove(moveFileRequestBody);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesMove");
            e.printStackTrace();
        }
    }
}
MoveFileRequestBody *moveFileRequestBody = ; // An object that describe which files to move. (optional)

FilesApi *apiInstance = [[FilesApi alloc] init];

// Mass file moving
[apiInstance filesMoveWith:moveFileRequestBody
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CubicMediaApiServer = require('cubic_media_api_server');

var api = new CubicMediaApiServer.FilesApi()

var opts = { 
  'moveFileRequestBody':  // {MoveFileRequestBody} An object that describe which files to move.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.filesMove(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class filesMoveExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var moveFileRequestBody = new MoveFileRequestBody(); // MoveFileRequestBody | An object that describe which files to move. (optional) 

            try
            {
                // Mass file moving
                apiInstance.filesMove(moveFileRequestBody);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.filesMove: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$moveFileRequestBody = ; // MoveFileRequestBody | An object that describe which files to move.

try {
    $api_instance->filesMove($moveFileRequestBody);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->filesMove: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $moveFileRequestBody = WWW::SwaggerClient::Object::MoveFileRequestBody->new(); # MoveFileRequestBody | An object that describe which files to move.

eval { 
    $api_instance->filesMove(moveFileRequestBody => $moveFileRequestBody);
};
if ($@) {
    warn "Exception when calling FilesApi->filesMove: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.FilesApi()
moveFileRequestBody =  # MoveFileRequestBody | An object that describe which files to move. (optional)

try: 
    # Mass file moving
    api_instance.files_move(moveFileRequestBody=moveFileRequestBody)
except ApiException as e:
    print("Exception when calling FilesApi->filesMove: %s\n" % e)

Parameters

Body parameters
Name Description
moveFileRequestBody

Responses

Status: 200 - OK

Status: 422 - Unprocessable Entity


filesTree

get hierarchy tree of directories


/files/tree

Usage and SDK Samples

curl -X GET "https://cubicapi.frb.io/api/v0.1/files/tree"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

import java.io.File;
import java.util.*;

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        Integer file = 56; // Integer | File id
        try {
            array[File] result = apiInstance.filesTree(file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesTree");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        Integer file = 56; // Integer | File id
        try {
            array[File] result = apiInstance.filesTree(file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesTree");
            e.printStackTrace();
        }
    }
}
Integer *file = 56; // File id

FilesApi *apiInstance = [[FilesApi alloc] init];

// get hierarchy tree of directories
[apiInstance filesTreeWith:file
              completionHandler: ^(array[File] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CubicMediaApiServer = require('cubic_media_api_server');

var api = new CubicMediaApiServer.FilesApi()

var file = 56; // {Integer} File id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.filesTree(file, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class filesTreeExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var file = 56;  // Integer | File id

            try
            {
                // get hierarchy tree of directories
                array[File] result = apiInstance.filesTree(file);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.filesTree: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$file = 56; // Integer | File id

try {
    $result = $api_instance->filesTree($file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->filesTree: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $file = 56; # Integer | File id

eval { 
    my $result = $api_instance->filesTree(file => $file);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FilesApi->filesTree: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.FilesApi()
file = 56 # Integer | File id

try: 
    # get hierarchy tree of directories
    api_response = api_instance.files_tree(file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FilesApi->filesTree: %s\n" % e)

Parameters

Path parameters
Name Description
file*
Integer
File id
Required

Responses

Status: 200 - OK


filesUpdate

Create a new file


/files/{file}

Usage and SDK Samples

curl -X PUT "https://cubicapi.frb.io/api/v0.1/files/{file}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

import java.io.File;
import java.util.*;

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        Integer file = 56; // Integer | File id
        UpdateFileRequestBody updateFileRequestBody = ; // UpdateFileRequestBody | File object
        try {
            apiInstance.filesUpdate(file, updateFileRequestBody);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesUpdate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        Integer file = 56; // Integer | File id
        UpdateFileRequestBody updateFileRequestBody = ; // UpdateFileRequestBody | File object
        try {
            apiInstance.filesUpdate(file, updateFileRequestBody);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesUpdate");
            e.printStackTrace();
        }
    }
}
Integer *file = 56; // File id
UpdateFileRequestBody *updateFileRequestBody = ; // File object

FilesApi *apiInstance = [[FilesApi alloc] init];

// Create a new file
[apiInstance filesUpdateWith:file
    updateFileRequestBody:updateFileRequestBody
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CubicMediaApiServer = require('cubic_media_api_server');

var api = new CubicMediaApiServer.FilesApi()

var file = 56; // {Integer} File id

var updateFileRequestBody = ; // {UpdateFileRequestBody} File object


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.filesUpdate(file, updateFileRequestBody, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class filesUpdateExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var file = 56;  // Integer | File id
            var updateFileRequestBody = new UpdateFileRequestBody(); // UpdateFileRequestBody | File object

            try
            {
                // Create a new file
                apiInstance.filesUpdate(file, updateFileRequestBody);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.filesUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$file = 56; // Integer | File id
$updateFileRequestBody = ; // UpdateFileRequestBody | File object

try {
    $api_instance->filesUpdate($file, $updateFileRequestBody);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->filesUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $file = 56; # Integer | File id
my $updateFileRequestBody = WWW::SwaggerClient::Object::UpdateFileRequestBody->new(); # UpdateFileRequestBody | File object

eval { 
    $api_instance->filesUpdate(file => $file, updateFileRequestBody => $updateFileRequestBody);
};
if ($@) {
    warn "Exception when calling FilesApi->filesUpdate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.FilesApi()
file = 56 # Integer | File id
updateFileRequestBody =  # UpdateFileRequestBody | File object

try: 
    # Create a new file
    api_instance.files_update(file, updateFileRequestBody)
except ApiException as e:
    print("Exception when calling FilesApi->filesUpdate: %s\n" % e)

Parameters

Path parameters
Name Description
file*
Integer
File id
Required
Body parameters
Name Description
updateFileRequestBody *

Responses

Status: 200 - OK

Status: 404 - Not Found

Status: 422 - Unprocessable Entity


Generated 2018-01-22T07:41:22.665Z