Deleting a Single Attachment in an Account

You can delete a single attachment attached to an account using either of the two methods described below.

Deleting an Attachment: Specifying the ID in the Request

This example uses single object operations syntax to delete an attachment, which is identified by its ID in the URL.

  • URI: http://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account%20Attachment/88-1X5EPZ

  • HTTP Method: DELETE

  • Accept: application/json

  • Content-Type: application/json

  • Authorization: Basic

  • Request body: None

  • Response body:
    {
        "items": {
            "Id": "1-5GZO",
            "operation": "skipnode"
        }
    }

Deleting an Attachment: Specifying the ID in an Array

This example uses multi-object object operations syntax to delete an attachment. The attachment ID is contained in the array body.

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

  • HTTP Method: DELETE

  • Accept: application/json

  • Content-Type: application/json

  • Authorization: Basic

  • Request body:
    [
        {
             "Id": "88-1X5MBB",
             "Account Attachment": [
                {
                    "Id": "88-1X5MBF"
                }
                ]
        }
    ]
  • Response body:
    [
        {
            "Id": "88-1YQ5LV",
            "operation": "skipnode"
        }
    ]