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

Name Description Type Additional information
relationId

Id of relation.

integer

Required

Body Parameters

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

Photo
Name Description Type Additional information
Content

Photo content in Base64String format.

string

-

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
Name Description Type Additional information
Version

Version

-

Content

HttpContent

-

StatusCode

HttpStatusCode

-

ReasonPhrase

string

-

Headers

Collection of Object

-

RequestMessage

HttpRequestMessage

-

IsSuccessStatusCode

boolean

-