POST api/gallery/SaveMedia

Request Information

URI Parameters

None.

Body Parameters

Systemic.Model.mlGallery+Master
NamedescriptionTypeAdditional information
GallerySysID

integer

None.

GalleryName

string

None.

Description

string

None.

CategorySysID

integer

None.

IsApproved

boolean

None.

ApprovedBy

string

None.

ApprovedDate

string

None.

BranchSysID

integer

None.

lstImageDetail

Collection of Systemic.Model.mlGallery+Master+Detail

None.

lstVideoDetail

Collection of Systemic.Model.mlGallery+Master+Detail

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "GallerySysID": 1,
  "GalleryName": "sample string 2",
  "Description": "sample string 3",
  "CategorySysID": 4,
  "IsApproved": true,
  "ApprovedBy": "sample string 6",
  "ApprovedDate": "sample string 7",
  "BranchSysID": 8,
  "lstImageDetail": [
    {
      "GalleryImageSysID": 1,
      "GallerySysID": 2,
      "FileName": "sample string 3",
      "FileType": "sample string 4",
      "IsApproved": true,
      "ApprovedBy": "sample string 6",
      "ApprovedDate": "sample string 7",
      "IsDeleted": true
    },
    {
      "GalleryImageSysID": 1,
      "GallerySysID": 2,
      "FileName": "sample string 3",
      "FileType": "sample string 4",
      "IsApproved": true,
      "ApprovedBy": "sample string 6",
      "ApprovedDate": "sample string 7",
      "IsDeleted": true
    }
  ],
  "lstVideoDetail": [
    {
      "GalleryImageSysID": 1,
      "GallerySysID": 2,
      "FileName": "sample string 3",
      "FileType": "sample string 4",
      "IsApproved": true,
      "ApprovedBy": "sample string 6",
      "ApprovedDate": "sample string 7",
      "IsDeleted": true
    },
    {
      "GalleryImageSysID": 1,
      "GallerySysID": 2,
      "FileName": "sample string 3",
      "FileType": "sample string 4",
      "IsApproved": true,
      "ApprovedBy": "sample string 6",
      "ApprovedDate": "sample string 7",
      "IsDeleted": true
    }
  ]
}

text/xml

Sample:
<mlGallery.Master xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model">
  <ApprovedBy>sample string 6</ApprovedBy>
  <ApprovedDate>sample string 7</ApprovedDate>
  <BranchSysID>8</BranchSysID>
  <CategorySysID>4</CategorySysID>
  <Description>sample string 3</Description>
  <GalleryName>sample string 2</GalleryName>
  <GallerySysID>1</GallerySysID>
  <IsApproved>true</IsApproved>
  <lstImageDetail>
    <mlGallery.Master.Detail>
      <ApprovedBy>sample string 6</ApprovedBy>
      <ApprovedDate>sample string 7</ApprovedDate>
      <FileName>sample string 3</FileName>
      <FileType>sample string 4</FileType>
      <GalleryImageSysID>1</GalleryImageSysID>
      <GallerySysID>2</GallerySysID>
      <IsApproved>true</IsApproved>
      <IsDeleted>true</IsDeleted>
    </mlGallery.Master.Detail>
    <mlGallery.Master.Detail>
      <ApprovedBy>sample string 6</ApprovedBy>
      <ApprovedDate>sample string 7</ApprovedDate>
      <FileName>sample string 3</FileName>
      <FileType>sample string 4</FileType>
      <GalleryImageSysID>1</GalleryImageSysID>
      <GallerySysID>2</GallerySysID>
      <IsApproved>true</IsApproved>
      <IsDeleted>true</IsDeleted>
    </mlGallery.Master.Detail>
  </lstImageDetail>
  <lstVideoDetail>
    <mlGallery.Master.Detail>
      <ApprovedBy>sample string 6</ApprovedBy>
      <ApprovedDate>sample string 7</ApprovedDate>
      <FileName>sample string 3</FileName>
      <FileType>sample string 4</FileType>
      <GalleryImageSysID>1</GalleryImageSysID>
      <GallerySysID>2</GallerySysID>
      <IsApproved>true</IsApproved>
      <IsDeleted>true</IsDeleted>
    </mlGallery.Master.Detail>
    <mlGallery.Master.Detail>
      <ApprovedBy>sample string 6</ApprovedBy>
      <ApprovedDate>sample string 7</ApprovedDate>
      <FileName>sample string 3</FileName>
      <FileType>sample string 4</FileType>
      <GalleryImageSysID>1</GalleryImageSysID>
      <GallerySysID>2</GallerySysID>
      <IsApproved>true</IsApproved>
      <IsDeleted>true</IsDeleted>
    </mlGallery.Master.Detail>
  </lstVideoDetail>
</mlGallery.Master>

response Information

Resource description

Api.Server.ServerResponse
NamedescriptionTypeAdditional information
response

string

None.

success

Api.Server.MlSuccess

None.

failure

Api.Server.MlError

None.

response Formats

application/json, text/json, text/html

Sample:
{
  "response": "sample string 1",
  "success": null,
  "failure": null
}

text/xml

Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Server">
  <failure i:nil="true" />
  <response>sample string 1</response>
  <success i:nil="true" />
</ServerResponse>