POST api/clients/{clientId}/ProfileImage
Posts and saves the picture provided and associates it to the client.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId |
parameter to pass the client id. |
integer |
Required |
Body Parameters
the picture to save; it must be encoded as a Base64 string.
AddProfileImageInput| Name | Description | Type | Additional information |
|---|---|---|---|
| Picture | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Picture": "sample string 1"
}
application/xml, text/xml
Sample:
<AddProfileImageInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO.ActionInputs"> <Picture>sample string 1</Picture> </AddProfileImageInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
An Http response message with the folliwing status codes: 204 = success and no content, 400 = bad request (the request is malformed or with invalid data), 404 = not found (this is returned when the client provided is not found) 500 = something went wrong (the request was not processed).
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. |