Skip to main content

Write Files

Use this API to write contents of the files

Request Body REQUIRED
askribeKey string

Your secret Askribe key. Can be obtained from your org's settings dashboard

driveId string

The id of your drive. It looks like RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. This can be found on your drive dashboard.

files object[]

List of files whose contents are to be updated.

itemId string

Id of the textual file whose contents you want to update.

fileContents string

Updated contents of the file. Note the contents of the file are completely replaced with this value.

Responses
200

Returns the files with the updated content

Schema OPTIONAL
isSuccess boolean OPTIONAL
data object[] OPTIONAL
name string OPTIONAL

Name of the item

description string OPTIONAL

Description of the item

resourceId string OPTIONAL

The id of the item. It looks like RLIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

driveId string OPTIONAL

The id of your drive. It looks like RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

resourceType string OPTIONAL

Possible values: [FILE, FOLDER]

FILE or FOLDER

storageUrl string OPTIONAL

URL of the storage location of the item

size int64 OPTIONAL

Size of the item in bytes

mimeType string OPTIONAL

Mime type of the item, e.g., application/pdf, image/png

parentFolderId string OPTIONAL

Parent folder id.

createdAt int64 OPTIONAL

Timestamp when the item was created

updatedAt int64 OPTIONAL

Timestamp when the item was last updated

isDeleted boolean OPTIONAL

Boolean indicating if the item is present in trash

isExplicitlyDeleted boolean OPTIONAL

Boolean indicating if the item was explicitly deleted by the user. Useful to distinguish whether an item was deleted directly or via its ancestor folder.

tags string[] OPTIONAL

List of tag ids associated with the item

pathById string OPTIONAL

Path of the item in the drive via ids

pathByName string OPTIONAL

Path of the item in the drive via names

fileContents string OPTIONAL

Contents of the file if the file is a text file. This field will only be populated for read files

errorMessage string OPTIONAL
customError object OPTIONAL