POST api/CustomerPhoto/InsertAll

Request Information

URI Parameters

None.

Body Parameters

Collection of 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
  },
  {
    "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},{"customerID":1,"fileByte":"QEA=","fileName":"sample string 2","fileType":"sample string 3","id":1}]

application/xml, text/xml

Sample:
<ArrayOfCustomerPhotoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saba.Common.Ef">
  <CustomerPhotoDto>
    <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>
  <CustomerPhotoDto>
    <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>
</ArrayOfCustomerPhotoDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of 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
  },
  {
    "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},{"customerID":1,"fileByte":"QEA=","fileName":"sample string 2","fileType":"sample string 3","id":1}]

application/xml, text/xml

Sample:
<ArrayOfCustomerPhotoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saba.Common.Ef">
  <CustomerPhotoDto>
    <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>
  <CustomerPhotoDto>
    <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>
</ArrayOfCustomerPhotoDto>