Inserting Multiple Parent Level Attachments

You can insert multiple top-level attachments to a record.

The following details describe how to upload several top-level attachments, where the request body is an array, and each element has attachment details, such as the ResFileName and ResFileExtfields and contents of the file to be attached as Base64 encoded string in the Res Attachment Id field. The response body will have the details of all the attachments inserted along with link to download each of the new attachments.

  • URI: https://ServerName:port/siebel/v1.0/data/AttachmentDocIO/SR%20Resolution%20Item

  • HTTP Method: POST

  • Accept: application/json

  • Content-Type: multipart/form-data

  • Transfer encoding: Chunked

  • Authorization: Basic

  • Request body:

    [{
        "ResFileName": "DemoTest_12",
        "ResFileExt": "txt",
        "Res Attachment Id": "//5XAHcAMABLAEkAQwBCADcARABRAG8AZwBJAEMAQQBnAEkAbAB..."
    },
    {
        "ResFileName": "DemoTest_13",
        "ResFileExt": "txt",
        "Res Attachment Id": "//5XAHcAMABLAEkAQwBCADcARABRAG8AZwBJAEMAQQBnAEkAbAB..."
    },
    {
        "ResFileName": "DemoTest_14",
        "ResFileExt": "txt",
        "Res Attachment Id": "//5XAHcAMABLAEkAQwBCADcARABRAG8AZwBJAEMAQQBnAEkAbAB..."
    }]
  • Response body:

    [
    {
    "ResFileExt": "txt", 
    "Res Attachment Id": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70TI?fields=Res Attachment Id",
     "Id": "88-1X70TI",
    "ResFileName": "DemoTest_12", "Link": [
    {
    "rel": "self",
    "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70TI", "name": "SR Resolution Item"
    }
    ],
    },
    {
    "ResFileExt": "txt",
    "Res Attachment Id": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70TJ?fields=Res Attachment Id",
    "Id":  "88-1X70TJ",
    
    "ResFileName": "DemoTest_13", "Link": [
    {
    "rel": "self",
    "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70TJ", "name": "SR Resolution Item"
    }
    ],
    },
    {
    "ResFileExt": "txt", 
    "Res Attachment Id": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70TK?fields=Res Attachment Id",
              "Id": "88-1X70TK",
    "ResFileName": "DemoTest_14", "Link": [
    {
    "rel": "self",
    "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70TK", "name": "SR Resolution Item"
    }
    ]
    }
    ]