createListing problem

7 views
Skip to first unread message

GraGra33

unread,
Jun 17, 2011, 3:08:54 AM6/17/11
to Etsy API V2
Hi Guys,

Whilst writing a Sandbox Sync tool, I can across the following (400)
Bad Request error when calling createListing:

X-Mashery-Responder: proxyworker-i-6c3c2104.mashery.com
X-Error-Detail: object has validation errors on the following
field(s): materials (Your materials may not contain _., Your materials
may not contain _.) : materials (Your materials may not contain _.,
Your materials may not contain _.);
Accept-Ranges: bytes
Content-Length: 221
Content-Type: text/plain;charset=UTF-8
Date: Fri, 17 Jun 2011 07:02:15 GMT
Server: Apache

Etsy.com allows for two-worded materials however the API doesn't
appear to. Is this correct or should the API allow the same as the
main site?

G.

Aaron Gardner

unread,
Jun 17, 2011, 1:58:13 PM6/17/11
to etsy-...@googlegroups.com
The "materials" field currently accepts space characters (which need
to be properly encoded).

The underscore "_" character is not valid inside the materials field
when creating and updating a Listing.

Therefore that particular validation error message is expected and
correct. Try using real space characters instead.

We are investigating allowing underscores in "materials" for writes to
match the format of reads. Coincidentally the infrastructure that
powers the taxonomy and materials is undergoing some changes and so we
would need to coordinate any API changes in these fields with that
effort.

Best regards,
Aaron Gardner
Developer API Team
Etsy.com

> --
> You received this message because you are subscribed to the Google Groups "Etsy API V2" group.
> To post to this group, send email to etsy-...@googlegroups.com.
> To unsubscribe from this group, send email to etsy-api-v2...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/etsy-api-v2?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages