Add an Attachment

Purpose

To attach a file to a specific Note. The file 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": "contact.png"
        }
    ]
}

Sample Response

Copied{
    "data": [
        {
            "code": "SUCCESS",
            "details": {
                "Modified_Time": "2023-04-06T14:46:21+05:30",
                "Modified_By": {
                    "name": "Marianne Sheehan",
                    "id": "1003000000208001"
                },
                "Created_Time": "2023-04-06T14:46:21+05:30",
                "id": "1003000000635001",
                "Created_By": {
                    "name": "Marianne Sheehan",
                    "id": "1003000000208001"
                }
            },
            "message": "attachment uploaded successfully",
            "status": "success"
        }
    ]
}