Querying an Attachment to Return Contents as a File

You can query an attachment to return attachment contents as a file by using the ?fields=Accnt Attachment Id query parameter in the request URI. This query only returns a single attachment as a file.

  • URI: http://ServerName:port/siebel/v1.0/data/AttachmentDocIO/SR%20Resolution%20Item/88-1X701B?fields=Accnt%20Attachment%20Id

  • HTTP Method: GET

  • Accept: application/json

  • Authorization: Basic

  • Request body: None

  • Response body: testfile.txt