Updates the expiry date of existing label assignments in bulk. An organization can update up to 10 assignments per request. Returns HTTP 200 if all succeed, HTTP 207 if some fail, or HTTP 400 if all fail.
Requires authentication with a valid bearer token.
The token must have write access to the Labels resource.
Body parameters
Note: The Updatable column indicates whether a field can be changed after the assignment is created. Fields marked No identify the assignment to update.
Field
Type
Required
Description
Updatable
entityType
enum
Required
Entity type of the assigned entity. One of: CUSTOMER, PRODUCT, STORE.
No
updates
array
Required
List of assignment update objects. Maximum 10 per request.
—
.entityId
string
Required
Identifier of the entity whose assignment is being updated.
No
.labelId
integer
Conditional
System-assigned identifier of the label. Exactly one of labelId, labelName, or labelExternalId must be provided.
No
.labelName
string
Conditional
Display name of the label. Exactly one of labelId, labelName, or labelExternalId must be provided.
No
.labelExternalId
string
Conditional
Caller-defined identifier of the label. Exactly one of labelId, labelName, or labelExternalId must be provided.
No
.expiryDate
string
Required
New expiry date for the assignment. Format: YYYY-MM-DD. Must be a future date.