PUT api/GalleryBasket

Request Information

URI Parameters

None.

Body Parameters

GalleryBasketInsertUpdateRequestModel
NameDescriptionTypeAdditional information
GalleryBasketID

integer

None.

GalleryID

integer

Required

GalleryBasketName

string

Required

GalleryBasketDescription

string

None.

BasketType

integer

Required

IsCreatedByCustomer

integer

None.

BasketItems

Collection of BasketItemDetailsRequestModel

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "galleryBasketID": 1,
  "galleryID": 1,
  "galleryBasketName": "sample string 2",
  "galleryBasketDescription": "sample string 3",
  "basketType": 4,
  "isCreatedByCustomer": 1,
  "basketItems": [
    {
      "itemID": 1
    },
    {
      "itemID": 1
    }
  ]
}

application/xml, text/xml

Sample:
<GalleryBasketInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel">
  <BasketItems>
    <BasketItemDetailsRequestModel>
      <ItemID>1</ItemID>
    </BasketItemDetailsRequestModel>
    <BasketItemDetailsRequestModel>
      <ItemID>1</ItemID>
    </BasketItemDetailsRequestModel>
  </BasketItems>
  <BasketType>4</BasketType>
  <GalleryBasketDescription>sample string 3</GalleryBasketDescription>
  <GalleryBasketID>1</GalleryBasketID>
  <GalleryBasketName>sample string 2</GalleryBasketName>
  <GalleryID>1</GalleryID>
  <IsCreatedByCustomer>1</IsCreatedByCustomer>
</GalleryBasketInsertUpdateRequestModel>

multipart/form-data

Sample:
<GalleryBasketInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel"><BasketItems><BasketItemDetailsRequestModel><ItemID>1</ItemID></BasketItemDetailsRequestModel><BasketItemDetailsRequestModel><ItemID>1</ItemID></BasketItemDetailsRequestModel></BasketItems><BasketType>4</BasketType><GalleryBasketDescription>sample string 3</GalleryBasketDescription><GalleryBasketID>1</GalleryBasketID><GalleryBasketName>sample string 2</GalleryBasketName><GalleryID>1</GalleryID><IsCreatedByCustomer>1</IsCreatedByCustomer></GalleryBasketInsertUpdateRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GalleryBasketInsertUpdateRequestModel'.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>