listings_edit
Change listing fields on one listing, on the listings named by listing_ids, or on every listing a query finds.
For agents: this page as Markdown.
- Granted by
-
listings:write - Team permission
-
listing.edit— a role that can edit listings - Effect
- Writes to the seller’s Tusella workspace only. Nothing is sent to Etsy or Pinterest.
- Undo
- The result carries a
recovery_refforchange_revert. - May return an operation handle
- Follow it with
operation_readuntil it finishes. - Retry-safe
- Repeat the same
client_request_idwith the same arguments.
Description
Change listing fields on one listing, on the listings named by listing_ids, or on every listing a query finds. For one seller intent on the same targets, bundle compatible changes in one changes array rather than calling once per field. Direct single-listing edits may combine groups when all fields qualify for direct editing under current operation policy. taxonomy_id always requires a proposal; fields outside the direct family and multi-listing edits also use proposals. Each proposal changes one group named in the field description. mixed_parts applies nothing and returns retry_args: send each entry as its own listings_edit call, in order, unchanged. Resolve needed references first. Wait for the category operation to finish before looking up category-dependent attributes. Send annotations, labels, and description replace_text separately from other field changes. Use a fresh client_request_id for a new intent; reuse it only to retry the identical request. Each change is {field, apply}: set a value, merge items into a list, transform with a named op (replace_text {find, replace} in text, increase_percent on price, remove_values from a list), or assign one value per listing id. For assign, include at most 10 listings per call; split larger sets into smaller calls. Setting return_policy_id to null clears Workspace only; if Etsy has a selected policy, publish will refuse that clear. Use another policy id to replace it. A change to one listing is saved at once and returns a receipt whose recovery_ref undoes it through change_revert; there, a replace_text find must occur exactly once in the description and needs based_on_read. A change across several listings, or one that needs confirming such as a category change, returns an operation handle: read its summary and confirm it with operation_authorize, or set apply_safe_proposals=true to confirm a self-authorizable proposal in this call using the same policy and frozen-preview checks. This requires the operation_authorize grant for a name-scoped connection. Seller-only proposals remain proposed. Execution is asynchronous: use the returned status and handle with operation_read to check completion; authorized does not mean applied. Labels apply at once across any number of listings with no operation_authorize step; follow its handle with operation_read. Example: {"client_request_id": "c1", "listing_id": "<id>", "changes": [{"field": "tags", "apply": {"mode": "merge", "append": ["gift"]}}, {"field": "materials", "apply": {"mode": "set", "value": ["cotton"]}}]}. Org-scoped.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| apply_safe_proposals | boolean | no | Confirm a self-authorizable field-change proposal in this call; requires the operation_authorize grant for a name-scoped connection. Seller-only proposals remain proposed. Returns the current operation status, not a claim of completed execution. Omit or false to propose only. |
| based_on_read | string | no | A read_id a recent listings_find or listing_read call returned; required for a replace_text in the description and for assign. A listing changed since that read is refused so you re-read before overwriting. |
| changes | array of object | yes | One or more {field, apply} entries, each field at most once. Send fields from different groups in separate calls when a proposal is needed. Direct single-listing edits may combine groups. |
| client_request_id | string | yes | Stable replay identity for this call; repeat it to retry safely. |
| listing_id | string | no | UUID of the listing; omit to use the listing bound to this turn. |
| listing_ids | array of string | no | Explicit listing ids to change, at most 500; never together with listing_id or query. |
| query | object | no | A ListingQuery v1 object: typed predicates combine with AND. Provide any subset. |
| shop_id | string | no | UUID of a connected shop from team_overview. External agents may omit it only when the team has one selectable shop; an in-app turn may use its selected shop. |
Example
{
"client_request_id": "descriptor-example-1",
"listing_id": "00000000-0000-0000-0000-000000000001",
"changes": [
{
"field": "title",
"apply": {
"mode": "set",
"value": "Café mug"
}
}
]
}{
"result": {
"listing_id": "00000000-0000-0000-0000-000000000001",
"field_change_ids": [
"00000000-0000-0000-0000-000000000001"
],
"action_result": {
"schema_version": 1,
"disposition": "committed",
"change_report": null
},
"recovery": {
"kind": "ref",
"ref": "journal:00000000-0000-0000-0000-000000000001"
},
"recovery_ref": "journal:00000000-0000-0000-0000-000000000001"
}
}Schemas
Exactly what the server declares to MCP clients. The input_schema is what the server validates arguments against.
Input schema· 1784 lines of JSON
{
"$defs": {
"d0": {
"items": {
"$ref": "#/$defs/d2"
},
"maxItems": 5,
"minItems": 1,
"type": "array"
},
"d1": {
"additionalProperties": {
"$ref": "#/$defs/d4"
},
"description": "Property-id or attribute-name keyed values. Each is a string, a {value, property_value_id?, scale_id?} entry, or an array of entries. Use arrays for multiple values, never comma-joined text. Catalog values need property_value_id; scale-bound values need scale_id. Find choices through reference_lookup category_attributes / category_attribute_values. For stored values, copy category_attributes.attribute_entries from listing_read.",
"type": "object"
},
"d10": {
"description": "Money such as {\"amount\": \"149.00\", \"currency_code\": \"USD\"}, or null to clear.",
"examples": [
{
"amount": "149.00",
"currency_code": "USD"
}
],
"properties": {
"amount": {
"description": "Decimal amount, preferably a string such as 149.00.",
"type": [
"string",
"number"
]
},
"currency_code": {
"description": "Use the listing/shop currency from listing_read or shop_overview.",
"type": "string"
}
},
"required": [
"amount",
"currency_code"
],
"type": [
"object",
"null"
]
},
"d11": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/d13"
}
]
},
"d12": {
"additionalProperties": false,
"properties": {
"mode": {
"const": "transform",
"type": "string"
},
"op": {
"$ref": "#/$defs/d17"
},
"operand": {
"description": "The transform's own input; shape depends on op."
}
},
"required": [
"mode",
"op",
"operand"
],
"type": "object"
},
"d13": {
"additionalProperties": false,
"properties": {
"property_value_id": {
"description": "The provider value id from reference_lookup or listing_read.",
"type": [
"integer",
"string",
"null"
]
},
"scale_id": {
"description": "The scale id from reference_lookup or the stored value.",
"type": [
"integer",
"string",
"null"
]
},
"value": {
"description": "The selected or freeform display text.",
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"d14": {
"additionalProperties": false,
"properties": {
"append": {
"description": "Values to add to the field's existing list.",
"items": {},
"type": "array"
},
"mode": {
"const": "merge",
"type": "string"
}
},
"required": [
"mode",
"append"
],
"type": "object"
},
"d15": {
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
},
"d16": {
"description": "Choose physical or download. The legacy Etsy value both is accepted only when the listing already holds it; changing to both is refused.",
"enum": [
"physical",
"download",
"both"
],
"type": "string"
},
"d17": {
"description": "The registered transform to apply.",
"enum": [
"decrease_amount",
"decrease_percent",
"increase_amount",
"increase_percent",
"remove_values",
"replace_text",
"replace_value"
],
"type": "string"
},
"d18": {
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "The new value for the field."
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
"d19": {
"if": {
"properties": {
"question_type": {
"const": "labeled_upload"
}
},
"required": [
"question_type"
]
},
"then": {
"properties": {
"options": {
"items": {
"properties": {
"label": {
"maxLength": 45
}
}
}
}
}
}
},
"d2": {
"allOf": [
{
"$ref": "#/$defs/d20"
},
{
"$ref": "#/$defs/d19"
}
],
"properties": {
"add_on_price": {
"$ref": "#/$defs/d22"
},
"instructions": {
"maxLength": 120,
"type": [
"string",
"null"
]
},
"max_allowed_characters": {
"$ref": "#/$defs/d25"
},
"max_allowed_files": {
"$ref": "#/$defs/d24"
},
"options": {
"$ref": "#/$defs/d21"
},
"question_text": {
"maxLength": 45,
"type": "string"
},
"question_type": {
"enum": [
"text_input",
"dropdown",
"unlabeled_upload",
"labeled_upload"
],
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"question_type",
"question_text",
"instructions",
"required",
"max_allowed_characters",
"max_allowed_files",
"options"
],
"type": "object"
},
"d20": {
"if": {
"properties": {
"question_type": {
"const": "dropdown"
}
},
"required": [
"question_type"
]
},
"then": {
"properties": {
"options": {
"items": {
"properties": {
"label": {
"maxLength": 20
}
}
}
}
}
}
},
"d21": {
"description": "Options for dropdown, slot labels for labeled_upload, or [] otherwise.",
"items": {
"properties": {
"label": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"d22": {
"description": "For optional text_input, carry over the current price or use null when the requested personalization is free. A price uses {amount, currency_code}."
},
"d23": {
"anyOf": [
{
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
{
"pattern": "^\\s*[+-]?\\d(?:_?\\d)*\\s*$",
"type": "string"
}
]
},
"d24": {
"description": "Positive file limit for upload questions. Use null for other types.",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"d25": {
"description": "Positive character limit for text_input. Use null for other types.",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"d3": {
"oneOf": [
{
"$ref": "#/$defs/d18"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"$ref": "#/$defs/d15"
}
]
},
"d4": {
"oneOf": [
{
"$ref": "#/$defs/d11"
},
{
"$ref": "#/$defs/d9"
}
]
},
"d5": {
"description": "Use readiness_state_id from reference_lookup kind=readiness_definition for the listing's shop; write it as etsy_readiness_state_id, never the local reference_id (UUID). An integer or numeric string is accepted. null clears the Workspace selection; legacy blank strings also clear it, but prefer null. publication still enforces Etsy applicability and required references.",
"oneOf": [
{
"type": "integer"
},
{
"pattern": "^\\s*(?:[+-]?\\d(?:_?\\d)*)?\\s*$",
"type": "string"
},
{
"type": "null"
}
]
},
"d6": {
"description": "Use shipping_profile_id from reference_lookup kind=shipping_profile for the listing's shop; write it as shipping_profile_id, never the local reference_id (UUID). An integer or numeric string is accepted. null clears the Workspace selection; legacy blank strings also clear it, but prefer null. publication still enforces Etsy applicability and required references.",
"oneOf": [
{
"type": "integer"
},
{
"pattern": "^\\s*(?:[+-]?\\d(?:_?\\d)*)?\\s*$",
"type": "string"
},
{
"type": "null"
}
]
},
"d7": {
"description": "Use return_policy_id from reference_lookup kind=return_policy for the listing's shop; write it as return_policy_id, never the local reference_id (UUID). An integer or numeric string is accepted. null clears the Workspace selection; legacy blank strings also clear it, but prefer null. publication still enforces Etsy applicability and required references.",
"oneOf": [
{
"type": "integer"
},
{
"pattern": "^\\s*(?:[+-]?\\d(?:_?\\d)*)?\\s*$",
"type": "string"
},
{
"type": "null"
}
]
},
"d8": {
"description": "Use shop_section_id from reference_lookup kind=shop_section for the listing's shop; write it as shop_section_id, never the local reference_id (UUID). An integer or numeric string is accepted. null clears the Workspace selection; legacy blank strings also clear it, but prefer null. publication still enforces Etsy applicability and required references.",
"oneOf": [
{
"type": "integer"
},
{
"pattern": "^\\s*(?:[+-]?\\d(?:_?\\d)*)?\\s*$",
"type": "string"
},
{
"type": "null"
}
]
},
"d9": {
"items": {
"$ref": "#/$defs/d11"
},
"type": "array"
}
},
"properties": {
"apply_safe_proposals": {
"default": false,
"description": "Confirm a self-authorizable field-change proposal in this call; requires the operation_authorize grant for a name-scoped connection. Seller-only proposals remain proposed. Returns the current operation status, not a claim of completed execution. Omit or false to propose only.",
"type": "boolean"
},
"based_on_read": {
"description": "A read_id a recent listings_find or listing_read call returned; required for a replace_text in the description and for assign. A listing changed since that read is refused so you re-read before overwriting.",
"type": "string"
},
"changes": {
"description": "One or more {field, apply} entries, each field at most once. Send fields from different groups in separate calls when a proposal is needed. Direct single-listing edits may combine groups.",
"items": {
"additionalProperties": false,
"anyOf": [
{
"additionalProperties": false,
"properties": {
"apply": {
"$ref": "#/$defs/d3"
},
"field": {
"enum": [
"attribute_edit",
"is_supply",
"is_taxable",
"item_dimensions_unit",
"item_height",
"item_length",
"item_weight",
"item_weight_unit",
"item_width",
"labels",
"notes",
"photos",
"production_partner_ids",
"quantity",
"should_auto_renew",
"taxonomy_id",
"when_made",
"who_made",
"working_name"
],
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"$ref": "#/$defs/d16"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"$ref": "#/$defs/d16"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "type",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "New title (full replace).",
"maxLength": 140,
"type": "string"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"description": "New title (full replace).",
"maxLength": 140,
"type": "string"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "title",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "New description (full replace).",
"maxLength": 102400,
"type": "string"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"description": "New description (full replace).",
"maxLength": 102400,
"type": "string"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "description",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "New tag list (full replace).",
"items": {
"maxLength": 20,
"type": "string"
},
"maxItems": 13,
"type": "array"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"description": "New tag list (full replace).",
"items": {
"maxLength": 20,
"type": "string"
},
"maxItems": 13,
"type": "array"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "tags",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "The new value for the field.",
"items": {
"maxLength": 45,
"type": "string"
},
"maxItems": 20,
"type": "array"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"items": {
"maxLength": 45,
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "materials",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "The new value for the field.",
"items": {
"maxLength": 45,
"type": "string"
},
"maxItems": 2,
"type": "array"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"items": {
"maxLength": 45,
"type": "string"
},
"maxItems": 2,
"type": "array"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "styles",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "The new value for the field.",
"maxLength": 32,
"type": [
"string",
"null"
]
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"maxLength": 32,
"type": [
"string",
"null"
]
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "sku",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"description": "The new value for the field.",
"properties": {
"personalization_questions": {
"$ref": "#/$defs/d0"
}
},
"required": [
"personalization_questions"
],
"type": [
"object",
"null"
]
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"properties": {
"personalization_questions": {
"$ref": "#/$defs/d0"
}
},
"required": [
"personalization_questions"
],
"type": [
"object",
"null"
]
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "personalization",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"$ref": "#/$defs/d10"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"$ref": "#/$defs/d10"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "price",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"$ref": "#/$defs/d1"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"$ref": "#/$defs/d1"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "attributes",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"$ref": "#/$defs/d6"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"$ref": "#/$defs/d6"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "shipping_profile_id",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"$ref": "#/$defs/d7"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"$ref": "#/$defs/d7"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "return_policy_id",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"$ref": "#/$defs/d8"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"$ref": "#/$defs/d8"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "shop_section_id",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"apply": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "set",
"type": "string"
},
"value": {
"$ref": "#/$defs/d5"
}
},
"required": [
"mode",
"value"
],
"type": "object"
},
{
"$ref": "#/$defs/d14"
},
{
"$ref": "#/$defs/d12"
},
{
"additionalProperties": false,
"properties": {
"mode": {
"const": "assign",
"type": "string"
},
"values": {
"additionalProperties": {
"$ref": "#/$defs/d5"
},
"description": "One literal value per listing id being changed.",
"type": "object"
}
},
"required": [
"mode",
"values"
],
"type": "object"
}
]
},
"field": {
"const": "etsy_readiness_state_id",
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
}
],
"properties": {
"apply": {
"$ref": "#/$defs/d3"
},
"field": {
"description": "The field to change. Proposal fields (group; apply modes): attribute_edit (category_attributes; ); description (description; set, transform, assign); etsy_readiness_state_id (fulfillment; set); is_supply (details; set); is_taxable (details; set); item_dimensions_unit (fulfillment; set); item_height (fulfillment; set); item_length (fulfillment; set); item_weight (fulfillment; set); item_weight_unit (fulfillment; set); item_width (fulfillment; set); materials (details; set); personalization (personalization; set); photos (photos; ); price (commerce; set, transform, assign); production_partner_ids (details; set); quantity (commerce; set, assign); return_policy_id (fulfillment; set); shipping_profile_id (fulfillment; set); shop_section_id (details; set); should_auto_renew (details; set); sku (commerce; set, assign); styles (details; set); tags (tags; set, merge, transform, assign); taxonomy_id (category_attributes; set); title (title; set, transform, assign); type (details; set); when_made (details; set); who_made (details; set). Direct-only fields (set): attributes, notes, working_name change one listing at a time; every other field changes one listing or many. labels: merge append [label ids] attaches, transform remove_values [label ids] detaches; across several listings it applies at once, no operation_authorize needed. personalization takes {personalization_questions: [...]} as listing_read returns it, or null. price takes {amount, currency_code}, for example {\"amount\": \"149.00\", \"currency_code\": \"USD\"}, or null to clear. attributes takes property-id or name keyed values: a string, {value, property_value_id?, scale_id?}, or an array of those entries. Find catalog value and scale ids with reference_lookup; never join multiple values with commas. taxonomy_id is the category.",
"enum": [
"attribute_edit",
"attributes",
"description",
"etsy_readiness_state_id",
"is_supply",
"is_taxable",
"item_dimensions_unit",
"item_height",
"item_length",
"item_weight",
"item_weight_unit",
"item_width",
"labels",
"materials",
"notes",
"personalization",
"photos",
"price",
"production_partner_ids",
"quantity",
"return_policy_id",
"shipping_profile_id",
"shop_section_id",
"should_auto_renew",
"sku",
"styles",
"tags",
"taxonomy_id",
"title",
"type",
"when_made",
"who_made",
"working_name"
],
"type": "string"
}
},
"required": [
"field",
"apply"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"client_request_id": {
"description": "Stable replay identity for this call; repeat it to retry safely.",
"type": "string"
},
"listing_id": {
"description": "UUID of the listing; omit to use the listing bound to this turn.",
"type": "string"
},
"listing_ids": {
"description": "Explicit listing ids to change, at most 500; never together with listing_id or query.",
"items": {
"type": "string"
},
"type": "array"
},
"query": {
"additionalProperties": false,
"description": "A ListingQuery v1 object: typed predicates combine with AND. Provide any subset.",
"properties": {
"category_any": {
"description": "Match listings whose category is exactly one of these taxonomy ids.",
"items": {
"type": "integer"
},
"type": "array"
},
"category_missing": {
"const": true,
"description": "Match listings with no category set.",
"type": "boolean"
},
"category_under": {
"description": "Match listings whose category is this taxonomy id or nested under it.",
"type": "integer"
},
"changes_vs_etsy_any": {
"description": "Match listings by how they compare to Etsy: up_to_date, unpublished_changes, changed_on_etsy, conflict, unknown, or not_on_etsy.",
"items": {
"type": "string"
},
"type": "array"
},
"created_after": {
"description": "Match listings created after this date-time.",
"format": "date-time",
"type": "string"
},
"created_before": {
"description": "Match listings created before this date-time.",
"format": "date-time",
"type": "string"
},
"description_contains": {
"description": "Match listings whose description contains this text.",
"type": "string"
},
"edited_after": {
"description": "Match listings the seller or an agent last edited after this date-time.",
"format": "date-time",
"type": "string"
},
"edited_before": {
"description": "Match listings the seller or an agent last edited before this date-time.",
"format": "date-time",
"type": "string"
},
"expires_before": {
"description": "Match listings whose Etsy listing expires before this date-time.",
"format": "date-time",
"type": "string"
},
"expires_within_days": {
"description": "Match listings whose Etsy listing expires within this many days.",
"type": "number"
},
"favorites_max": {
"description": "Match listings with at most this many favorites.",
"type": "number"
},
"favorites_min": {
"description": "Match listings with at least this many favorites.",
"type": "number"
},
"has_personalization": {
"description": "Match listings that do (true) or do not (false) accept buyer personalization.",
"type": "boolean"
},
"has_video": {
"description": "Match listings that do (true) or do not (false) have a video.",
"type": "boolean"
},
"label_all": {
"description": "Match listings carrying every one of these label ids.",
"items": {
"type": "string"
},
"type": "array"
},
"label_any": {
"description": "Match listings carrying any of these label ids.",
"items": {
"type": "string"
},
"type": "array"
},
"label_missing": {
"const": true,
"description": "Match listings with no label.",
"type": "boolean"
},
"label_none": {
"description": "Match listings carrying none of these label ids.",
"items": {
"type": "string"
},
"type": "array"
},
"materials_any": {
"description": "Match listings that use any of these materials.",
"items": {
"type": "string"
},
"type": "array"
},
"never_published": {
"const": true,
"description": "Match listings that have never been published.",
"type": "boolean"
},
"photos_count_max": {
"description": "Match listings with at most this many photos.",
"type": "number"
},
"photos_count_min": {
"description": "Match listings with at least this many photos.",
"type": "number"
},
"presence_any": {
"description": "Match listings by whether they are on Etsy: on_etsy, not_on_etsy, or missing_from_etsy.",
"items": {
"type": "string"
},
"type": "array"
},
"price_max": {
"description": "Match listings priced at most this amount.",
"type": "number"
},
"price_min": {
"description": "Match listings priced at least this amount.",
"type": "number"
},
"price_missing": {
"const": true,
"description": "Match listings with no price set.",
"type": "boolean"
},
"published_after": {
"description": "Match listings last published after this date-time.",
"format": "date-time",
"type": "string"
},
"published_before": {
"description": "Match listings last published before this date-time.",
"format": "date-time",
"type": "string"
},
"quantity_max": {
"description": "Match listings with at most this quantity in stock.",
"type": "number"
},
"quantity_min": {
"description": "Match listings with at least this quantity in stock.",
"type": "number"
},
"quantity_missing": {
"const": true,
"description": "Match listings with no quantity set.",
"type": "boolean"
},
"return_policy_any": {
"description": "Match numeric Etsy return policy IDs from reference_lookup(kind=return_policy).",
"items": {
"$ref": "#/$defs/d23"
},
"type": "array"
},
"return_policy_missing": {
"const": true,
"description": "Match listings with no return policy.",
"type": "boolean"
},
"shipping_profile_any": {
"description": "Match numeric Etsy shipping profile IDs from reference_lookup(kind=shipping_profile).",
"items": {
"$ref": "#/$defs/d23"
},
"type": "array"
},
"shipping_profile_missing": {
"const": true,
"description": "Match listings with no shipping profile.",
"type": "boolean"
},
"shop_section_any": {
"description": "Match numeric Etsy shop section IDs from reference_lookup(kind=shop_section), not section titles. Include no_section for unfiled listings.",
"items": {
"anyOf": [
{
"maximum": 9223372036854776000,
"minimum": -9223372036854776000,
"type": "integer"
},
{
"pattern": "^\\s*[+-]?\\d(?:_?\\d)*\\s*$",
"type": "string"
},
{
"const": "no_section",
"type": "string"
}
]
},
"type": "array"
},
"shop_section_missing": {
"const": true,
"description": "Match listings with no shop section.",
"type": "boolean"
},
"sku_contains": {
"description": "Match listings whose SKU contains this text.",
"type": "string"
},
"status_any": {
"description": "Match listings whose status is one of these: active, draft, inactive, sold_out, expired.",
"items": {
"type": "string"
},
"type": "array"
},
"stock_any": {
"description": "Match listings by stock level: zero, low, or variation_out — some variations at zero while others still sell.",
"items": {
"type": "string"
},
"type": "array"
},
"tags_any": {
"description": "Match listings that carry any of these tags.",
"items": {
"type": "string"
},
"type": "array"
},
"tags_count_max": {
"description": "Match listings with at most this many tags.",
"type": "number"
},
"tags_count_min": {
"description": "Match listings with at least this many tags.",
"type": "number"
},
"tags_none": {
"description": "Match listings that carry none of these tags.",
"items": {
"type": "string"
},
"type": "array"
},
"title_contains": {
"description": "Match listings whose title contains this text.",
"type": "string"
},
"variations_count_max": {
"description": "Match listings with at most this many variations.",
"type": "number"
},
"variations_count_min": {
"description": "Match listings with at least this many variations.",
"type": "number"
},
"version": {
"const": 1,
"description": "Schema version; always 1.",
"type": "integer"
},
"views_max": {
"description": "Match listings with at most this many views.",
"type": "number"
},
"views_min": {
"description": "Match listings with at least this many views.",
"type": "number"
}
},
"type": "object"
},
"shop_id": {
"description": "UUID of a connected shop from team_overview. External agents may omit it only when the team has one selectable shop; an in-app turn may use its selected shop.",
"type": "string"
}
},
"required": [
"client_request_id",
"changes"
],
"type": "object"
}Output schema· 270 lines of JSON
{
"oneOf": [
{
"properties": {
"action_result": {
"properties": {
"change_report": {
"type": [
"object",
"null"
]
},
"disposition": {
"enum": [
"committed",
"no_effect"
],
"type": "string"
},
"schema_version": {
"const": 1,
"type": "integer"
}
},
"required": [
"schema_version",
"disposition",
"change_report"
],
"type": "object"
},
"applied": {
"items": {
"type": "string"
},
"type": "array"
},
"change_id": {
"type": [
"string",
"null"
]
},
"completed_at": {
"format": "date-time",
"type": "string"
},
"field_change_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"field_changes": {
"items": {
"additionalProperties": false,
"properties": {
"after": {},
"before": {},
"display": {
"additionalProperties": false,
"properties": {
"after": {
"type": [
"string",
"null"
]
},
"before": {
"type": [
"string",
"null"
]
}
},
"required": [
"before",
"after"
],
"type": "object"
},
"field": {
"type": "string"
},
"values_omitted": {
"type": "boolean"
}
},
"required": [
"field",
"before",
"after",
"display"
],
"type": "object"
},
"type": "array"
},
"listing": {
"additionalProperties": false,
"properties": {
"changes_vs_etsy": {
"type": [
"string",
"null"
]
},
"price_max": {
"additionalProperties": false,
"properties": {
"amount": {
"type": "string"
},
"currency_code": {
"type": "string"
}
},
"type": [
"object",
"null"
]
},
"price_min": {
"additionalProperties": false,
"properties": {
"amount": {
"type": "string"
},
"currency_code": {
"type": "string"
}
},
"type": [
"object",
"null"
]
},
"price_varies": {
"type": "boolean"
},
"status": {
"type": "string"
},
"thumbnail": {
"additionalProperties": false,
"properties": {
"expires_at": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url",
"expires_at"
],
"type": [
"object",
"null"
]
},
"title": {
"type": "string"
}
},
"type": [
"object",
"null"
]
},
"listing_id": {
"type": "string"
},
"next_read_id": {
"type": "string"
},
"recovery": {
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"ref",
"inverse",
"none"
],
"type": "string"
},
"recovered_by": {
"type": "string"
},
"ref": {
"description": "Pass to change_revert to undo this change.",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
"recovery_ref": {
"type": [
"string",
"null"
]
},
"skipped": {
"items": {
"properties": {
"field": {
"type": "string"
},
"media_id": {
"type": "string"
},
"skipped_reason": {
"type": "string"
}
},
"required": [
"field",
"skipped_reason"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"listing_id",
"field_change_ids",
"action_result",
"recovery",
"recovery_ref"
],
"type": "object"
},
{
"properties": {
"handle_id": {
"type": "string"
},
"review_required": {
"type": "boolean"
},
"status": {
"type": "string"
},
"summary": {
"type": "object"
}
},
"required": [
"handle_id",
"status"
],
"type": "object"
}
],
"type": "object",
"x-result-size-budget": {
"description": "One write receipt, or one operation handle whose summary carries counts, a blocker histogram, and at most 10 sample rows.",
"max_bytes": 16384,
"strategy": "bounded-result"
}
}