GET api/clients/{clientId}/attachments?guid={guid}

Gets an attachment file assoicated to a client. This operation downloads a file through a stream of bytes. The Content-Type, Content-Length and Content-Disposition headers are included as part of the response.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

The Id of the client the attachment is associated with.

integer

Required

guid

The GUID of the attachment file.

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

An Http response message with the following status codes: 200 = success (the content of this response includes a stream of bytes that form the file), 400 = bad request (the request is malformed or with invalid data), 403 = forbidden (the employee doing the request is not valid), 404 = not found (this is returned when the supplied client Id, attachmet GUID or actual file can't be found.) 500 = something went wrong (the request was not processed).

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.