createMarketplaceAuctionLot

This mutation allows the creation of a new marketplace auction lot.

Sample Mutation

Create an auction lot with a name of pictorial for a specific marketplace:

mutation{
  createMarketplaceAuctionLot(marketplaceAuctionLot:{
    collectionId:"b53a4163-ffce-455b-a72e-1a2106c90fbc"
    lotNumber:null
    marketplaceTokenId:"d5699b63-f2d8-49c0-9a46-dce441f14dae"
    startingBid:33
    saleType:Auction
    reservePrice:34
    startDate:"2022-02-14T06:08:00Z"
    endDate:"2022-02-15T06:09:00Z"
    collectionItemName:"pictorial"
  }){
    id
    lotNumber
    marketplaceCollectionItemId
    marketplaceCollectionItem{
      id
      collectionId
      saleType
      name
      status
    }
  }
}

Sample Response

{
  "data": {
    "createMarketplaceAuctionLot": {
      "id": "eae964cf-ebd5-4117-a070-4c1fa21b9901",
      "lotNumber": null,
      "marketplaceCollectionItemId": "0a945867-2b99-462c-a6c7-0aacc51bb5e7",
      "marketplaceCollectionItem": {
        "id": "00000000-0000-0000-0000-000000000000",
        "collectionId": "00000000-0000-0000-0000-000000000000",
        "saleType": "",
        "name": "",
        "status": ""
      }
    }
  }
}

Result

Arguments

Name

Type

Description

Required

marketplaceAuctionLot

Object

The update input for marketplace auction lot.

Yes

Returns

Name

Type

Description

MarketplaceAuctionLot

Object

Contains all the information of MarketplaceAuctionLot including ID, lot number, marketplace collection item, starting bid, reserve bid etc.

Example

Create an auction lot within a marketplace using MarketplaceAuctionLotInput object: