POST PlanCare2Api/Relations/{relationId}/Photo

Upload a photo of a relation, with a maximum allowed size of 10MB. Photo content in Base64String format.

Relation(s) can be of the following types: Client, Prospect, Employee, ContactPerson

Request Information

URI Parameters

NameDescriptionTypeAdditional information
relationId

Relation identifier.

integer

Required

Body Parameters

The Photo, with a maximum allowed size of 10MB.

Photo
NameDescriptionTypeAdditional information
Content

Photo content in Base64String format.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Content": "sample string 1"
}

application/xml, text/xml

Sample:
<Photo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface">
  <Content>sample string 1</Content>
</Photo>

Response Information

Resource Description

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.