Updating a Single Account by Adding One Attachment

This example describes how to update an account by adding a single attachment. This is done by specifying the contents of the attachment as a Base64 encoded value in the Accnt Attachment Id field. The response contains the attachment details, as well as a link to download the new attachment.

  • URI: http://ServerName:port/siebel/v1.0/data/Account/Account/

  • HTTP Method: PUT

  • Content-Type: multipart/form-data

  • Transfer encoding: Chunked

  • Authorization: Basic

  • Request body:
    [
        {
            "Name": "SingleAccountSingleAttachment",
            "Location": "HQ-Distribution",
            "Primary Organization Id": "1-1DG",
            "Primary Organization": "Millennium Institutional Finance Services IF ENU",
            "Description": "Updated AccountData 1 new ",
            "Account Attachment": [
                {
                    "AccntFileName": "SingleAccountSingleAttachment_file",
                    "AccntFileExt": "txt",
                    "Accnt Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw=="
                }
            ]
        }
    ]
  • Response body:
    {
      "items": [
        {
          "Name": "SingleAccountSingleAttachment",
          "Id": "88-1X5MBT",
          "Location": "HQ-Distribution",
          "Primary Organization Id": "1-1DG",
          "Primary Organization": "Millennium Institutional Finance Services IF ENU",
          "Description": "Updated AccountData 1 new ",
          "Account Attachment": [
            {
              "Id": "88-1X5MBW",
              "Accnt Attachment Id": "https://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5MBT/Account Attachment/88-1X5MBW?fields=Accnt Attachment Id",
              "Link": {
                "rel": "self",
                "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5MBT/Account Attachment/88-1X5MBW",
                "name": "Account Attachment"
              }
            }
          ],
          "Link": {
            "rel": "self",
            "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5MBT",
            "name": "Account"
          }
        }
      ]
    }