Payments
Subscriptions
Discounts
Licenses
Customers
Products
Payouts
Miscellaneous
Addons
Update Addon Images
Update images for an existing addon
PUT
/
addons
/
{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 response = await client.addons.updateImages('id');
console.log(response.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
Addon Id
Response
200
application/json
Generate presigned upload URL for addon image
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 response = await client.addons.updateImages('id');
console.log(response.image_id);
Copy
{
"image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.