POST api/employees/{employeeId}/profileImage

Posts and saves the picture provided and associates it to the employee.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeId

The Id of the employee whose picture is to be saved.

integer

Required

Body Parameters

The image as a base 64 string.

AddProfileImageInput
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddProfileImageInput'.

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 employee supplied is not 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.