Create attachment
Image attachments
Create attachment
Create a draft attachment upload for a listing and return a direct upload URL.
This is step 1 of the listing attachment workflow.
Workflow:
- Call this endpoint to obtain
idanduploadURL. - Upload the image bytes directly to the returned URL.
- Call finalize attachment to validate and persist the attachment on the listing.
Rules:
- Listing must belong to the authenticated seller.
- Listing must be active (
quantity > 0). - The returned image identifier is namespaced to the listing and seller context.
Response:
- Returns an
ImageUploadpayload with the image identifier and direct upload URL.
POST
Create attachment
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Listing ID