This example describes how to update an account by inserting an attachment into a child
record, in this instance Quote
is a child object of
Account
. You update multiple quote objects under the parent account
object to add multiple attachments under each quote. The response body contains details
and links of the attachments inserted.
-
URI: https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote
-
HTTP Method: PUT
-
Accept: application/json
-
Content-Type: multipart/form-data
-
Transfer encoding: Chunked
-
Authorization: Basic
-
Request body:
[ { "Id": "88-1X63EP", "Quote Attachment": [ { "QuoteFileName": "SingleAccountMultiAttachments_file_1", "QuoteFileExt": "txt", "Quote Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==" }, { "QuoteFileName": "SingleAccountMultiAttachments_file_2", "QuoteFileExt": "txt", "Quote Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==" }, { "QuoteFileName": "SingleAccountMultiAttachments_file_3", "QuoteFileExt": "txt", "Quote Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==" } ] }, { "Id": "88-1X0T5H", "Quote Attachment": [ { "QuoteFileName": "SingleAccountMultiAttachments_file_1", "QuoteFileExt": "txt", "Quote Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==" }, { "QuoteFileName": "SingleAccountMultiAttachments_file_2", "QuoteFileExt": "txt", "Quote Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==" }, { "QuoteFileName": "SingleAccountMultiAttachments_file_3", "QuoteFileExt": "txt", "Quote Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==" } ] } ]
-
Response body:
[ { "Id": "1-5GZO", "Quote": [ { "Id": "88-1X0T5H", "Quote Attachment": [ { "Quote Attachment Id": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X0T5H/Quote Attachment/88-1X62MT?fields=Quote Attachment Id", "Id": "88-1X62MT", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X0T5H/Quote Attachment/88-1X62MT", "name": "Quote Attachment" } ] }, { "Quote Attachment Id": " https://ServerName:port/siebel/v1.0/data /Account/Account/1-5GZO/Quote/88-1X0T5H/Quote Attachment/88-1X62MU?fields=Quote Attachment Id ", "Id": "88-1X62MU", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X0T5H/Quote Attachment/88-1X62MU", "name": "Quote Attachment" } ], }, { "Quote Attachment Id": " https://ServerName:port/siebel/v1.0/Account/Account/1-5GZO/Quote/88-1X0T5H/Quote Attachment/88-1X62MV?fields=Quote Attachment Id ", "Id": "88-1X62MV", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X0T5H/Quote Attachment/88-1X62MV", "name": "Quote Attachment" } } ], "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X0T5H", "name": "Quote" } ] }, { "Id": "88-1X62N0", "Quote Attachment": [ { "Quote Attachment Id": " https://ServerName:port/siebel/v1.0/data /Account/Account/1-5GZO/Quote/88-1X62N0/Quote Attachment/88-1X62N3?fields=Quote Attachment Id ", "Id": "88-1X62N3", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X62N0/Quote Attachment/88-1X62N3", "name": "Quote Attachment" } ] }, { "Quote Attachment Id": " https://ServerName:port/siebel/v1.0/data /Account/Account/1-5GZO/Quote/88-1X62N0/Quote Attachment/88-1X62N4?fields=Quote Attachment Id ", "Id": "88-1X62N4", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X62N0/Quote Attachment/88-1X62N4", "name": "Quote Attachment" } ] }, { "Quote Attachment Id": " https://ServerName:port/siebel/v1.0/data /Account/Account/1-5GZO/Quote/88-1X62N0/Quote Attachment/88-1X62N5?fields=Quote Attachment Id ", "Id": "88-1X62N5", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X62N0/Quote Attachment/88-1X62N5", "name": "Quote Attachment" } ] } ] "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Quote/88-1X62N0", "name": "Quote" } ] } ], "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO", "name": "Account" } ] } ]