[ENDPOINT]: Consistently use type or listing_type, but not both #740
foxfriends
started this conversation in
Ideas
Replies: 2 comments
-
@foxfriends We have this on our list of issues to address in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@foxfriends I just re-read your post and wanted to address one thing. You requested "PATCH requests to update only certain fields". The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
Current Endpoint Design
When I get a listing, it comes with a field
listing_type
.When I need to update a listing, it requires the field
type
.Seems like I have to rename that field to upload my product, which is kind of a pain.
In general, it would be nice if the API supported either
PATCH
requests to update only certain fields; orPUT
request as returned in theGET
responses. There are a number of changes required when updating a listing (see also #397) or updating its inventory (as documented, but that is still a weird thing) that are just asking for trouble.Proposed Endpoint Design Change
Use
listing_type
in both situations.Why are you proposing this change?
This is causing confusion and unnecessary bug-proneness to the API.
Beta Was this translation helpful? Give feedback.
All reactions