Replace ASIN item labels ยท Destructive
Replace item labels on up to 1,000 ASIN inputs in one marketplace project.
- Exact children and retained parents resolve to actual attachments.
- Additions and identical assignments apply immediately; any removed assignment returns a plan for the entire mixed update.
- Show it and wait for explicit confirmation before
execute_removal.
- Other occurrences retain their own labels.
Input
| Name | Type | Required | Description |
|---|
project_id | integer | Required | A marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group. Minimum 1. Maximum 2147483647. |
asins | string[] | Required | ASIN or retained parent inputs resolving to attachments in this marketplace project. At least 1 item. At most 1000 items. |
label_ids | integer[] | Required | Complete replacement item label IDs for the selected attachments. At most 1000 items. |
Output
Read this object from the result's structuredContent. The result's content carries a text version for the model, which is not always the same JSON.
The result is one of 2 shapes.
Variant 1
Fields of data:
| Name | Type | Required | Description |
|---|
plan_reference | string | Required | Pattern ^[A-Za-z0-9_-]{43}$. |
operation | string | Required | |
expires_at | string (date-time) | Required | |
targets | object[] | Required | |
consequences | object[] | Required | |
instructions | string | Required | |
Variant 2
Fields of data:
| Name | Type | Required |
|---|
operation | string | Required |
committed | true | Required |
recovered | boolean | Required |
outcome | object | Required |
Full input and output JSON Schema
{
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"project_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"description": "A marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group."
},
"asins": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"type": "string",
"maxLength": 1024
},
"description": "ASIN or retained parent inputs resolving to attachments in this marketplace project."
},
"label_ids": {
"maxItems": 1000,
"type": "array",
"items": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"description": "Complete replacement item label IDs for the selected attachments."
}
},
"required": [
"project_id",
"asins",
"label_ids"
],
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"data"
],
"anyOf": [
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"plan_reference",
"operation",
"expires_at",
"targets",
"consequences",
"instructions"
],
"properties": {
"plan_reference": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$"
},
"operation": {
"type": "string"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"targets": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"consequences": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"instructions": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"operation",
"committed",
"recovered",
"outcome"
],
"properties": {
"operation": {
"type": "string"
},
"committed": {
"const": true
},
"recovered": {
"type": "boolean"
},
"outcome": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
]
}
}