POST apioauth/installationportal/services/{serviceId}/photos

Post an image for a service

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceId

The service id the photo belongs to

unsigned integer

Required

Body Parameters

A CreateInstallationPortalPhotoRequest

CreateInstallationPortalPhotoRequest
NameDescriptionTypeAdditional information
PhotoData

The service image encoded as a Base64 string

string

None.

PhotoName

The name of the photo

string

None.

Index

The index of the photo to allow for ordering

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PhotoData": "sample string 1",
  "PhotoName": "sample string 2",
  "Index": 3
}

application/xml, text/xml

Sample:
<CreateInstallationPortalPhotoRequest 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>
  <Index>3</Index>
</CreateInstallationPortalPhotoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

200 on success

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean>true</boolean>