cURL
curl --request PATCH \ --url https://commerce.driv.ly/api/listings/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "updatedAt": "<string>", "createdAt": "<string>", "vehicles": 123, "mileage": 123, "seller": "<string>", "wholesaleValue": "<string>", "wholesaleBuyNowPrice": "<string>", "wholesaleMinimumBid": "<string>", "wholesaleCurrentBid": "<string>", "wholesaleDetailPage": "<string>", "condition": 123, "wholesaleConditionReport": "<string>", "retailValue": "<string>", "retailAskingPrice": "<string>", "retailBuyNowPrice": "<string>", "vehicleHistoryReport": "<string>", "vehicleHistoryScore": "<string>", "cleanTitle": true, "owners": 123, "accidents": 123, "attachments": "<string>", "pickupLocation": 123, "tenant": 123 } '
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "vehicles": 123, "mileage": 123, "seller": "<string>", "wholesaleValue": "<string>", "wholesaleBuyNowPrice": "<string>", "wholesaleMinimumBid": "<string>", "wholesaleCurrentBid": "<string>", "wholesaleDetailPage": "<string>", "condition": 123, "wholesaleConditionReport": "<string>", "retailValue": "<string>", "retailAskingPrice": "<string>", "retailBuyNowPrice": "<string>", "vehicleHistoryReport": "<string>", "vehicleHistoryScore": "<string>", "cleanTitle": true, "owners": 123, "accidents": 123, "attachments": "<string>", "pickupLocation": 123, "tenant": 123 }, "message": "<string>" }
Updates a Listing
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { listings } from '@drivly/commerce' const sdk = new SDK(...) const listings = await sdk.listings.update(listingsId: string, data: listings): Promise<listings>
id of the Listing
number of levels to automatically populate relationships and uploads
retrieves document(s) in a specific locale
specifies a fallback locale if no locale value exists
ok
Show child attributes