POST api/Product/GetProductOptions

Request Information

URI Parameters

None.

Body Parameters

GetBaseProductOptionRequest
NameDescriptionTypeAdditional information
SubOptionId

integer

None.

ProductIds

Collection of integer

None.

Name

string

None.

ProductId

integer

None.

listofsync

Collection of Storedata

None.

businessId

integer

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SubOptionId": 1,
  "ProductIds": [
    1,
    1
  ],
  "Name": "sample string 1",
  "ProductId": 1,
  "listofsync": [
    {
      "TableName": "sample string 1",
      "LastSync": "2026-03-20T14:27:55.5446114+00:00"
    },
    {
      "TableName": "sample string 1",
      "LastSync": "2026-03-20T14:27:55.5446114+00:00"
    }
  ],
  "businessId": 1,
  "Id": 1
}

application/xml, text/xml

Sample:
<GetBaseProductOptionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <Id>1</Id>
  <Name>sample string 1</Name>
  <ProductId>1</ProductId>
  <ProductIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1:long>
  </ProductIds>
  <SubOptionId>1</SubOptionId>
  <businessId>1</businessId>
  <listofsync>
    <Storedata>
      <LastSync>2026-03-20T14:27:55.5446114+00:00</LastSync>
      <TableName>sample string 1</TableName>
    </Storedata>
    <Storedata>
      <LastSync>2026-03-20T14:27:55.5446114+00:00</LastSync>
      <TableName>sample string 1</TableName>
    </Storedata>
  </listofsync>
</GetBaseProductOptionRequest>

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 'GetBaseProductOptionRequest'.

Response Information

Resource Description

GetBaseProductOptionResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Token

globally unique identifier

None.

BaseObjects

Collection of BaseProductOptionModel

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'TAG.DataModels.BaseProductOptionModel'. Path 'BaseObjects[0].SubBaseProductOption'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'TAG.DataModels.BaseProductOptionModel'. Path 'BaseObjects[0].SubBaseProductOption'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[TAG.DataModels.BaseProductOptionModel, TAG.DataModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[TAG.DataModels.BaseProductOptionModel, TAG.DataModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.