Skip to main content
cURL
Cost: 1 API credit per write.
Changes the live listing on Etsy. Needs the listings:write scope and the Listing optimization workspace permission. Send dry_run=true to see the planned write without sending it.

Set and remove

Properties you don’t name are untouched. A property the listing varies by can’t be removed here: change variations with Replace inventory.

Checked before anything is sent

Every entry is checked against Etsy’s properties for the listing’s category, from Get category properties. These answer 400:
  • a property the category doesn’t have;
  • a value outside its set;
  • a missing or foreign scale;
  • more values than the property takes.
When Alura hasn’t stored the category’s properties yet, the answer is 503. The write is never sent unchecked.

The answer

Revert change restores the values from before the change. Send an Idempotency-Key with every write: see Idempotency. Another write to the listing in flight answers 409 listing_busy. Credits and limits says when a write is charged.

Authorizations

Authorization
string
header
required

An API key: Authorization: Bearer alura_sk_....

Headers

Idempotency-Key
string

Makes a retry safe: the same key with the same request within 24 hours answers from the first write (with Idempotent-Replayed: true) and never writes to Etsy twice; a write that failed with nothing written (Retry-After set) is tried again under it. The same key with a different request is a 409 conflict; while the first request still runs, 409 idempotency_processing (or the same 202). Required for relative changes such as adjust_price, and to add a listing file, image or video, or to change the alt text of an image (each uploads to Etsy, so a blind retry would upload again); a dry_run=true needs none.

Required string length: 1 - 255

Path Parameters

id
string
required

The Etsy listing ID. A listing outside the workspace is 404.

Pattern: ^[0-9]{1,20}$
Example:

"1834720561"

Query Parameters

dry_run
boolean

true: plan the write and send nothing: what it would change, the Etsy calls it would make, and nothing reserved, charged or recorded. Free; counts toward the per-minute write limit.

Body

application/json
set
object[]

Properties to set: each property's values are replaced by the ones sent (value_ids and/or values, at least one value).

Maximum array length: 50
remove
string[]

Property IDs whose values to remove from the listing.

Maximum array length: 50
Pattern: ^[1-9][0-9]{0,18}$

Response

OK: the write landed on Etsy (or, with dry_run=true, what it would do).

object
string
required
Allowed value: "workspace.listing_attributes"
listing_id
string
required

Etsy ID, as a string.

shop_id
string
required

Etsy ID, as a string.

values
object[] | null
required

Every attribute value of the listing as Etsy holds it after the write; null when Etsy's answer was not readable (notice content_not_returned).

as_of
string
required

When Etsy answered the write.

change
object
required

The write: its change ID and what landed.

notices
object[]
required

Why a part of the answer is unknown; empty when nothing is.