This example describes how to update an account by inserting an attachment Account
Attachment
into a child record. The attachment contents are provided in the
Accnt_spcAttachment_spcId
field as a Base64 encoded value.
-
URI: https://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5SUL/Account%20Attachment
-
HTTP Method: PUT
-
Accept: application/xml
-
Content-Type: application/xml
-
Transfer encoding: Chunked
-
Authorization: Basic
-
Request body:
<?xml version="1.0" encoding="UTF-8"?> <request> <AccntFileName>multi_atta_File_acc_33577</AccntFileName> <AccntFileExt>txt</AccntFileExt> <Accnt_spcAttachment_spcId> W1RBQkxFXQpTX0NPTlRBQ1QKCltVUERBVEVdCltTR... </Accnt_spcAttachment_spcId> </request>
-
Response body:
<?xml version="1.0" ?> <response> <items> <Id>88-1X5SUL</Id> <Account_spcAttachment> <Id>88-1X5SXX</Id> <Accnt_spcAttachment_spcId>https://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5SUL/Account Attachment/88-1X5SXX?fields=Accnt Attachment Id</Accnt_spcAttachment_spcId> <Link> <rel>self</rel> <href>https://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5SUL/Account Attachment/88-1X5SXX</href> <name>Account Attachment</name> </Link> </Account_spcAttachment> <Link> <rel>self</rel> <href>https://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5SUL</href> <name>Account</name> </Link> </items> </response>