Open API v2 / Custom Modules / Module Item's Parent Items

Module Item's Parent Items

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

GET/api/v2/admin/module-items/{id}/parent-items#

Retrieves a list of module item's parent items

Parameters
idinteger · pathrequired
Resource identifier.
Response
ItemIdinteger
Unique identifier of the parent product in the system.
Namestring · nullable
Name of the module item parent.
curl "https://your-site.webinone.com/api/v2/admin/module-items/1/parent-items" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Items": [
    {
      "ItemId": 1,
      "Name": "Example"
    }
  ],
  "TotalItemsCount": 0
}
PUT/api/v2/admin/module-items/{id}/parent-items#

Updates an existing module item's parent item

Parameters
idinteger · pathrequired
Resource identifier.
Body parameters
ItemIdinteger
Unique identifier of the parent product in the system.
Namestring · nullable
Name of the module item parent.
Response
ItemIdinteger
Unique identifier of the parent product in the system.
Namestring · nullable
Name of the module item parent.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/module-items/1/parent-items" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '[{"ItemId":1,"Name":"Example"}]'
Response · 200
{
  "Items": [
    {
      "ItemId": 1,
      "Name": "Example"
    }
  ],
  "TotalItemsCount": 0
}