Update item set

Update Item Set configurations using PUT and track asynchronous rebuild status.

Overview

Use this endpoint to update an existing Item Set's name, description, or product selection criteria.

This endpoint replaces the Item Set definition and initiates an asynchronous rebuild. Partial updates are not supported.

Availability

Supported for Onsite Display only.

How it works

Retrieve the existing Item Set configuration, make the required changes, and submit the complete replacement definition.

1

Retrieve Item Set

Get the current definition and confirm update eligibility.

2

Modify definition

Update supported fields while retaining unchanged values.

3

Submit PUT

Send the complete replacement definition.

4

Rebuild

Walmart Connect processes the updated Item Set asynchronously.

5

Verify readiness

Confirm status is BUILT before using the updated Item Set.

PUT replaces the full definition. Omitted configuration values are not preserved as they would be with PATCH. Retrieve the existing definition before making changes.

Before you begin

  • Valid advertiserId and itemsetId
  • Existing Item Set configuration
  • Item Set is owned by the advertiser and configured with editable=true
  • Current Item Set status is BUILT or INVALID
  • Any updated product identifiers, brands, or category criteria are valid

Endpoint

PUT /api/v1/itemset


Request details

How this request is used

Use this endpoint to update supported Item Set attributes, including:

  • Item Set name or description
  • Products included in an item-based Item Set
  • Brands included in a brand-based Item Set
  • Category selection criteria
  • Existing hybrid expression criteria

The Item Set's class and type cannot be changed after creation.

Key fields and behaviors

  • itemsetId
    Identifies the existing item set to update
  • class
    Identifies whether the item set is used for measurement (default) or targeting; cannot be updated.
  • itemsetType
    Identifies featured or halo when class=measurement; cannot be updated.
  • type
    Identifies the existing product selection type ( item, brand, category, or hybrid).
  • editable
    Must be true for item set to be edited.
  • items
    Supplies the replacement product list for an item-based item set.
  • brands
    Supplies the replacement brand list for a brand-based item set.
  • expression
    Supplies the replacement selection criteria for expression-based item sets.

For complete field definitions and validation requirements, see the Update Item Set API reference.

Update eligibility

Not all Item Sets can be updated.

Item Set conditionUpdate behavior
editable=trueRequired for updating an existing Item Set.
editable=falseItem Set cannot be updated.
Shared Item SetCannot be updated by the receiving advertiser.
Auto-generated Halo Item SetCannot be updated.
Featured products used in active ad groupsProducts associated with creatives used by ad groups cannot be removed from the Featured Item Set.

Field eligibility by status

Item Sets can be updated only when their current status is BUILT or INVALID.

FieldBUILTINVALIDNotes
name✅✅Name can be updated.
description✅✅Requires editable=true.
items, brands, expression✅✅Product selection can be updated when eligible and editable=true.
class❌❌Immutable.
type❌❌Immutable.
editable❌❌Immutable.

Updates are not supported while the Item Set is DRAFT, PENDING, BUILDING, or FAILED.

Preserve the existing Item Set type

Updating an Item Set does not allow you to change its type.

For example, an Item-based Item Set cannot be converted into a Brand, Category, or Hybrid Item Set using this endpoint. Create a new Item Set when a different type is needed.

Update product selection

The product selection fields depend on the existing Item Set type.

Item-based Item Sets

Use items to replace the list of included products.

Each item includes:

  • id — identifies the product.
  • itemType — identifies the catalog identifier type.

Supported itemType values include gtin, upc, stores, and online.

For items with catalog=UNIVERSAL in the List Items API, use GTIN identifiers.

Brand-based Item Sets

Use brands or a brand-based expression to update the selected brands.

  • brands accepts an array of brand names.
  • Brand expressions use clauses with type=brand.
  • Do not combine a brand expression with the brands array in the same request.

Category-based Item Sets

Use expression to update category selection criteria.

Category clauses include:

  • name — category name.
  • level — category hierarchy level.
  • attributes — optional additional category filters.

Supported hierarchy levels are 1, 2, and 3.

Department, category, and subcategory names are case sensitive. Use the exact names returned by the List Taxonomies API.

Hybrid Item Sets

Use expression to update a combination of items, brands, and categories.

Hybrid Item Sets are supported for Targeting workflows.

The existing Item Set must already have type=hybrid. An update cannot convert another type into Hybrid.

Expression rules

When updating an expression-based Item Set:

  • Use the expression.or array to define the selection criteria.
  • Include at least one expression clause.
  • Supported clause types are item, brand, and category.
  • Only OR operations are supported.
  • Nested logical gates are not supported.
  • Do not combine expression with the items or brands array fields.

For category expression attributes and supported values, see the Create Item Set guide.


Sample requests

The following examples show how to update Item Sets using the supported product selection structures.

Update brand-based Item Set
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/itemset' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '[ { "advertiserId": 1, "itemsetId": 123, "name": "string", "description": "itemset description", "class": "measurement", "type": "brand", "editable": true, "brands": [ "abc", "xyz" ] } ]'
Update items in Item Set
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/itemset' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '[ { "advertiserId": 1, "itemsetId": 123, "name": "string", "description": "itemset description", "class": "measurement", "type": "item", "editable": true, "items": [ { "id": 123456789, "itemType": "gtin" }, { "id": 123456790, "itemType": "gtin" } ] } ]'
Update brand expression
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/itemset' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '[ { "advertiserId": 1, "itemsetId": 123, "name": "string", "description": "itemset description", "class": "measurement", "type": "brand", "editable": true, "expression": { "or": [ { "type": "brand", "value": { "name": "pepsi" } }, { "type": "brand", "value": { "name": "red bull" } } ] } } ]'
Update Halo category expression
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/itemset' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '[ { "advertiserId": 1, "itemsetId": 123, "name": "string", "description": "itemset description", "class": "measurement", "type": "category", "itemsetType": "halo", "editable": true, "expression": { "or": [ { "type": "category", "value": { "name": "baby food", "level": 1 } }, { "type": "category", "value": { "name": "Quilting Basting Guns", "level": 1 } } ] } } ]'
Update Targeting category expression
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/itemset' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '[ { "advertiserId": 1, "itemsetId": 123, "name": "string", "description": "itemset description", "class": "targeting", "type": "category", "editable": true, "expression": { "or": [ { "type": "category", "value": { "name": "baby food", "level": 1 } }, { "type": "category", "value": { "name": "Quilting Basting Guns", "level": 1 } } ] } } ]'
Update hybrid Item Set
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/itemset' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '[ { "advertiserId": 1, "itemsetId": 123, "name": "string", "description": "itemset description", "class": "targeting", "type": "hybrid", "editable": true, "expression": { "or": [ { "type": "item", "value": { "itemId": "123456789", "itemType": "gtin" } }, { "type": "item", "value": { "itemId": "123456790", "itemType": "gtin" } }, { "type": "brand", "value": { "name": "pepsi" } }, { "type": "category", "value": { "name": "baby food", "level": 1 } } ] } } ]'

Response details

What this response returns

A successful response confirms that the update request was accepted and returns the Item Set identifier.

Key fields to use

  • code
    Indicates whether the update request succeeded or failed.
  • details
    Provides additional information about the request, including errors when applicable.
  • itemsetId
    Identifies the updated Item Set.
  • message
    Optional. High-level, human-readable summary of the error when available.
  • errors
    Detailed information about one or more errors. This is an array object with fields: field, errorType, description

Error Handling

If the request or an individual item fails, the response includes error information to help identify the issue and determine the corrective action. Use errorType for the error condition, field for the affected request field when applicable, and description for an explanation of the error and, when available, guidance on how to resolve it.
For the complete error response schema and endpoint-specific response definitions, see the API Reference. For guidance on HTTP status codes and how clients should handle them, see API status codes and error handling.

How to interpret the response

A successful response confirms that the update request was accepted. It does not indicate that the Item Set has finished rebuilding.

After an update:

  • The Item Set enters the asynchronous build process.
  • Its status must return to BUILT before reuse.
  • The updated Item Set is temporarily unavailable while rebuilding.

Sample response

Item set update accepted
[ { "code": "success", "details": ["string"], "itemsetId": 123 }
]
Sample response - failure
[ { "code": "failure", "details": [ "string" ],    "message": "string",
    "errors": [ { "field": "string", "errorType": "string", "description": "string" } ] }
]

Common issues

  • Submitting a partial definition instead of the complete replacement payload
  • Attempting to update an Item Set with editable=false
  • Updating a shared or auto-generated Halo Item Set
  • Attempting to change immutable fields such as class or type
  • Updating an Item Set while its status is not BUILT or INVALID
  • Removing Featured Measurement products associated with creatives used in ad groups
  • Mixing expression with items or brands arrays
  • Using an unsupported catalog identifier or category value
  • Attempting to use the Item Set before rebuilding completes

What happens next

After a successful update:

  1. Store the returned itemsetId.
  2. Use List Item Sets to check build status.
  3. Wait until status=BUILT.
  4. Resume the applicable measurement, audience, or targeting workflow.

Related pages


Did this page help you?