POST api/clients/{clientId}/attachments/attach-file
Associates an uploaded file with an existing client (attach)
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId | integer |
Required |
Body Parameters
AttachUploadedFileRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| uploadKey | string |
Required |
|
| uploadToken | string |
Required |
|
| folderName | string |
Required String length: inclusive between 0 and 25 |
|
| fileDescription | string |
Required String length: inclusive between 0 and 100 |
|
| isPublic | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"uploadKey": "sample string 1",
"uploadToken": "sample string 2",
"folderName": "sample string 3",
"fileDescription": "sample string 4",
"isPublic": true
}
application/xml, text/xml
Sample:
<AttachUploadedFileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.RequestModels"> <fileDescription>sample string 4</fileDescription> <folderName>sample string 3</folderName> <isPublic>true</isPublic> <uploadKey>sample string 1</uploadKey> <uploadToken>sample string 2</uploadToken> </AttachUploadedFileRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |