POST api/CustomerPhoto/InsertOrUpdate

Request Information

URI Parameters

None.

Body Parameters

CustomerPhotoDto
NameDescriptionTypeAdditional information
CustomerID

integer

None.

FileByte

Collection of byte

Required

FileName

string

Required

FileType

string

Required

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "customerID": 1,
  "fileByte": "QEA=",
  "fileName": "sample string 2",
  "fileType": "sample string 3",
  "id": 1
}

text/html

Sample:
{"customerID":1,"fileByte":"QEA=","fileName":"sample string 2","fileType":"sample string 3","id":1}

application/xml, text/xml

Sample:
<CustomerPhotoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saba.Common.Ef">
  <ID xmlns="http://schemas.datacontract.org/2004/07/Saba.Infrastructure">1</ID>
  <CustomerID>1</CustomerID>
  <FileByte>QEA=</FileByte>
  <FileName>sample string 2</FileName>
  <FileType>sample string 3</FileType>
</CustomerPhotoDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CustomerPhotoDto
NameDescriptionTypeAdditional information
CustomerID

integer

None.

FileByte

Collection of byte

Required

FileName

string

Required

FileType

string

Required

ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "customerID": 1,
  "fileByte": "QEA=",
  "fileName": "sample string 2",
  "fileType": "sample string 3",
  "id": 1
}

text/html

Sample:
{"customerID":1,"fileByte":"QEA=","fileName":"sample string 2","fileType":"sample string 3","id":1}

application/xml, text/xml

Sample:
<CustomerPhotoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saba.Common.Ef">
  <ID xmlns="http://schemas.datacontract.org/2004/07/Saba.Infrastructure">1</ID>
  <CustomerID>1</CustomerID>
  <FileByte>QEA=</FileByte>
  <FileName>sample string 2</FileName>
  <FileType>sample string 3</FileType>
</CustomerPhotoDto>