API Documentation & SDKs
- Introduction
- Code Integration Tutorial
- SDKs - Node, Python, PHP, Go, Ruby, Java & Kotlin
- Payments Integration Guide
- Subscription Integration Guide
- Mobile Integration Guide
- On Demand Subscriptions
- Webhooks Details
- Managing Products Via API
- Overlay Checkout
- React Native SDK (Beta)
- Metadata Guide
- Configuring Allowed Payment Methods
- MCP Server
- Technical - FAQs
- Error Codes
- Transaction Failures
Payments
Subscriptions
Discounts
Licenses
Customers
Products
Payouts
Miscellaneous
Products
Update Product Images
Update a product’s images.
PUT
/
products
/
{id}
/
images
Copy
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const image = await client.products.images.update('id');
console.log(image.image_id);
Copy
{
"image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Product Id
Query Parameters
Response
200
application/json
Aws s3 presigned URL. Upload image to this URL within 60s
The response is of type object
.
Copy
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const image = await client.products.images.update('id');
console.log(image.image_id);
Copy
{
"image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.