Finalize attachment
Image attachments
Finalize attachment
Finalize a previously uploaded listing attachment and persist it on the listing.
This is step 2 of the listing attachment workflow and must be called after a successful direct upload.
Validation and integrity checks:
- Listing must belong to the authenticated seller and remain active.
idmust match the expected listing-scoped attachment URN format.- Uploaded image must no longer be in draft state.
Moderation:
- The uploaded image is downloaded and passed through moderation checks.
- Rejected images are deleted and the API returns
451with rejection reasons.
Side effects:
- Persists a listing attachment record when validation succeeds.
- Re-evaluates listing validity:
- If the listing requires a photo (price
>= 2000or grading metadata present), finalizing an attachment marks the listing asvalid: true.
- If the listing requires a photo (price
Response:
- Returns the persisted attachment identifier and public URL.
PATCH
Finalize attachment
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Listing ID
Body
application/json
Image identifier to finalize upload
Image identifier