Update Listing Collection Group Endpoint
This endpoint is only available if aerocargo/listing-collections is installed.
Structure
Listing Collection Group
| Name |
Type |
Description |
Required |
key |
string | The key of the listing collection group | No |
name |
string | The name for the listing collection group | No |
listings |
array | An array of Listing objects | No |
Listing
| Name |
Type |
Description |
Required |
id |
int | The id of the listing | Conditional * |
variant_id |
int | The id of the variant (of the listing) | Conditional * |
sku |
string | The SKU of the variant (of the listing) | Conditional * |
product_id |
int | The id of the product (of the listing) | Conditional * |
model |
string | The model of the product (of the listing) | Conditional * |
* At least one must be present, resolved in the order they are listed top-down.
Example Request
PUT /api/listing-collection-groups/{key}
{
"name": "API Test Updated",
"listings": [
{
"id": 2
}
]
}
Example Response
{
"listingCollectionGroup": {
"key": "api"
}
}