Change Log

  • 19-Jun-2024 | v7.0.0 | All new article

Contributors:

Adam Wilson - Logo Pogo

Module Items Attribute Options API

Create, Update and Delete Module Items Attribute Options via the public API endpoint.

POST Module Item Attribute Option Create

Creates a new Attribute Option based on the provided data.

/api/v2/admin/module-items/attributes/{attributeId}/options

Data / Response:

{
  "Name": "string",
  "Image": "string",
  "OptionPrices": [
    {
      "Value": 0,
      "CurrencyCountry": "string",
      "Currency": "string",
      "CountryAbbriviation": "string"
    }
  ]
}
{
  "Id": 0,
  "Name": "string",
  "Image": "string",
  "OptionPrices": [
    {
      "Value": 0,
      "CurrencyCountry": "string",
      "Currency": "string",
      "CountryAbbriviation": "string"
    }
  ]
}

PUT Module Item Attribute Option Update

Updates a single Attribute Option based on the ID passed in the endpoint URL and data provided.

/api/v2/admin/module-items/attributes/options/{id}

Data / Response:

{
  "Name": "string",
  "Image": "string",
  "OptionPrices": [
    {
      "Value": 0,
      "CurrencyCountry": "string",
      "Currency": "string",
      "CountryAbbriviation": "string"
    }
  ]
}
Status 204

DELETE Module Item Attribute Option Delete

Deletes a single Attribute Option based on the ID passed in the endpoint URL.

/api/v2/admin/module-items/attributes/options/{id}

Data / Response:

N/A
Status 204