Add file in to drive

Prev Next
Post
/v2/Drive/Folders/Files
Security
API Key: api_token
Header parameter nameapi_token

Enter REST API key. To generate a key, go to Settings → Knowledge base portal → API tokens

Query parameters
DriveFolderId
stringRequired

The folder ID

UserId
stringRequired

The ID of the team account

Body parameters
object
files
Array of string Required

File collection -The maximum file size upload limit is 40MB

string (binary)
Responses
200

Success

Success status response

This response indicates that the files were added to the drive successfully.

{
  "data": [
    {
      "id": "d8b65d24-ce62-407a-8463-846efc8eee93",
      "title": "Title name",
      "file_name": "File name",
      "file_type": "Other",
      "file_url": "https://file.example.com/file.png",
      "updated_by": "d79c041c-0f94-4b04-a8b6-a14bb1995eca",
      "media_folder_id": null
    }
  ],
  "extension_data": null,
  "success": true,
  "errors": [],
  "warnings": [],
  "information": []
}
Expand All
object
data
Array of object (MediaFileMetaDataCustomer) | null

Bulk response of file details

object
id
string

Media file Id

Min length1
title
string | null
file_name
string | null

The file name

file_type
string | null

The file type

file_url
string | null

The file URL

updated_by
string | null

The ID of the user who uploaded the file

media_folder_id
string | null

The parent Folder ID

extension_data
object | null

Extention data for customer API response

success
boolean

Status indication for customer API response

errors
Array of object (BaseError) | null

Errors in the customer API response

object
extension_data
object | null

Thids is the Extention data object

stack_trace
string | null

Stack trace for error response message

description
string | null

Description for error cause

error_code
string | null

Error code for Api response

custom_data
object | null
property*
warnings
Array of object (BaseWarning) | null

Warnings in the customer API response

object
extension_data
object | null

Extention Data for customer Api warning

description
string | null

Warning description

warning_code
string | null

warning code for customer Api base response

information
Array of object (BaseInformation) | null

Information passed by the customer API response

object
extension_data
object | null

Extention data for customer Api response information

description
string | null

status description for customer Api response information

400

Bad Request

Bad Response

Ensure the given file is valid and perform the task again.

{
  "extension_data": null,
  "success": false,
  "errors": [],
  "warnings": [],
  "information": []
}
Expand All
object
extension_data
object | null

Extention data for customer API response

success
boolean

Status indication for customer API response

errors
Array of object (BaseError) | null

Errors in the customer API response

object
extension_data
object | null

Thids is the Extention data object

stack_trace
string | null

Stack trace for error response message

description
string | null

Description for error cause

error_code
string | null

Error code for Api response

custom_data
object | null
property*
warnings
Array of object (BaseWarning) | null

Warnings in the customer API response

object
extension_data
object | null

Extention Data for customer Api warning

description
string | null

Warning description

warning_code
string | null

warning code for customer Api base response

information
Array of object (BaseInformation) | null

Information passed by the customer API response

object
extension_data
object | null

Extention data for customer Api response information

description
string | null

status description for customer Api response information