POST apioauth/photodescriptions/{photoDescriptionId}/installationphotos

Create a photo for a description

Request Information

URI Parameters

NameDescriptionTypeAdditional information
photoDescriptionId

The photo description id

integer

Required

Body Parameters

CreatePhotoRequest

CreatePhotoRequest
NameDescriptionTypeAdditional information
PhotoData

The photo encoded as a Base64 string

string

None.

PhotoName

The name of the photo

string

None.

Timestamp

The timestamp of the photo

date

None.

Latitude

The latitude where the photo was taken

decimal number

None.

Longitude

The longitude where the photo was taken

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "PhotoData": "sample string 1",
  "PhotoName": "sample string 2",
  "Timestamp": "2025-04-27T16:50:14.1441504+00:00",
  "Latitude": 4.1,
  "Longitude": 5.1
}

application/xml, text/xml

Sample:
<CreatePhotoRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PhotoData>sample string 1</PhotoData>
  <PhotoName>sample string 2</PhotoName>
  <Timestamp>2025-04-27T16:50:14.1441504+00:00</Timestamp>
  <Latitude>4.1</Latitude>
  <Longitude>5.1</Longitude>
</CreatePhotoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreatePhotoResponse

CreatePhotoResponse
NameDescriptionTypeAdditional information
PhotoId

The id of the photo

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PhotoId": 1
}

application/xml, text/xml

Sample:
<CreatePhotoResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PhotoId>1</PhotoId>
</CreatePhotoResponse>