Inserting a Parent Level Attachment

This example describes how to insert a top-level attachment to a record. In this example, the record is called SR Resolution Item. The attachment contents are provided in the Res Attachment Id field as a Base64 encoded value.

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

  • HTTP Method: POST

  • Accept: application/json

  • Authorization: Basic

  • Request body:

    {
        "ResFileName": "Demo_11",
        "ResFileExt": "txt",
        "Res Attachment Id": "5XAHcAMABLAEkAQwBCADcARABRAG8AZwBJAEM...."
    }
  • Response body:

    {
      "items": {
        "ResFileExt": "txt",
        "Res Attachment Id": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70T3?fields=Res Attachment Id",
        "Id": "88-1X70T3",
        "ResFileName": "Demo_11",
        "Link": {
          "rel": "self",
          "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X70T3",
          "name": "SR Resolution Item"
        }
      }
    }