POST api/Photos

Request Information

URI Parameters

None.

Body Parameters

Photo
NameDescriptionTypeAdditional information
PhotoID

integer

None.

PhotoGroupID

integer

None.

PhotoName

string

None.

Description

string

None.

FileURL

string

None.

PhotoDate

date

None.

PhotoOrder

integer

None.

CreatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "PhotoID": 1,
  "PhotoGroupID": 2,
  "PhotoName": "sample string 3",
  "Description": "sample string 4",
  "FileURL": "sample string 5",
  "PhotoDate": "2019-02-17T18:40:07.7411493-08:00",
  "PhotoOrder": 7,
  "CreatedDate": "2019-02-17T18:40:07.7411493-08:00"
}

application/xml, text/xml

Sample:
<Photo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web_API.Entities">
  <CreatedDate>2019-02-17T18:40:07.7411493-08:00</CreatedDate>
  <Description>sample string 4</Description>
  <FileURL>sample string 5</FileURL>
  <PhotoDate>2019-02-17T18:40:07.7411493-08:00</PhotoDate>
  <PhotoGroupID>2</PhotoGroupID>
  <PhotoID>1</PhotoID>
  <PhotoName>sample string 3</PhotoName>
  <PhotoOrder>7</PhotoOrder>
</Photo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Photo
NameDescriptionTypeAdditional information
PhotoID

integer

None.

PhotoGroupID

integer

None.

PhotoName

string

None.

Description

string

None.

FileURL

string

None.

PhotoDate

date

None.

PhotoOrder

integer

None.

CreatedDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "PhotoID": 1,
  "PhotoGroupID": 2,
  "PhotoName": "sample string 3",
  "Description": "sample string 4",
  "FileURL": "sample string 5",
  "PhotoDate": "2019-02-17T18:40:07.7411493-08:00",
  "PhotoOrder": 7,
  "CreatedDate": "2019-02-17T18:40:07.7411493-08:00"
}

application/xml, text/xml

Sample:
<Photo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web_API.Entities">
  <CreatedDate>2019-02-17T18:40:07.7411493-08:00</CreatedDate>
  <Description>sample string 4</Description>
  <FileURL>sample string 5</FileURL>
  <PhotoDate>2019-02-17T18:40:07.7411493-08:00</PhotoDate>
  <PhotoGroupID>2</PhotoGroupID>
  <PhotoID>1</PhotoID>
  <PhotoName>sample string 3</PhotoName>
  <PhotoOrder>7</PhotoOrder>
</Photo>