Upload a file to ZFS (Zoho File System)

Purpose

To upload a file to the Zoho File System (ZFS). All of your files and attachments are stored in ZFS, which serves as the main storage system. Use the file ID returned from this API to add the file as an attachment to a Note in Zoho FSM. You must upload the file with content type as multipart/form-data.

Request URL

https://fsm.zoho.com/fsm/v1/files

Request Method

POST

Scope

scope=ZohoFSM.files.CREATE

Note: The maximum allowed size of the file is 20MB.

Sample Request

Copiedcurl "https://fsm.zoho.com/fsm/v1/files"
-X POST
-H "Authorization: Zoho-oauthtoken 1000.xxxx.xxxxxe"
-F "file=contact.png"

Sample Response

Copied{
    "data": {
        "code": "SUCCESS",
        "File_Name": "contact.png",
        "file_id": "16806156XXXXXXGwAz1lB",
        "message": "File has been uploaded successfully.",
        "status": 200
    }
}