Skip to main content

Add Attachments to Notes

Purpose

To attach files to a specific Note. The files should first be uploaded to ZFS.

Request URL

https://fsm.zoho.com/fsm/v1/Notes/<note_id>/Attachments

note_id - The ID of the note to which you want to attach a file

Request Method

POST

Scope

scope=ZohoFSM.modules.notes.CREATE

Mandatory Parameters

NameDescriptionType
File_IdThe file_id you obtain after uploading the file to ZFSString
File_Name     A display name for the fileString

Sample Request

Copiedcurl --request POST 'https://fsm.zoho.com/fsm/v1/Notes/1003000000623009/Attachments' \
--header 'Authorization: Zoho-oauthtoken 1000.xxxxxx.xxxxxxe'

Sample Input

Copied{
    "data": [
        {
            "File_Id": "16806156XXXXXXGwAz1lB",
            "File_Name": "image1.png"
        },
        {
            "File_Id": "17358041XXXXXXh7rzFX6",
            "File_Name": "image2.png"
        }
    ]
}

Sample Response

Copied{
    "data": [
        {
            "code": "SUCCESS",
            "details": {
                "Modified_Time": "2025-01-02T13:27:03+05:30",
                "Modified_By": {
                    "name": "Mary Cooper",
                    "id": "1439000000161001"
                },
                "Created_Time": "2025-01-02T13:27:03+05:30",
                "id": "1439000001465027",
                "Created_By": {
                    "name": "Mary Cooper",
                    "id": "1439000000161001"
                }
            },
            "message": "attachment uploaded successfully",
            "status": "success"
        },
        {
            "code": "SUCCESS",
            "details": {
                "Modified_Time": "2025-01-02T13:27:03+05:30",
                "Modified_By": {
                    "name": "Mary Cooper",
                    "id": "1439000000161001"
                },
                "Created_Time": "2025-01-02T13:27:03+05:30",
                "id": "1439000001465029",
                "Created_By": {
                    "name": "Mary Cooper",
                    "id": "1439000000161001"
                }
            },
            "message": "attachment uploaded successfully",
            "status": "success"
        }
    ]
}

Show full

Show less