PUT
/
products
/
{id}
/
images
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const image = await client.products.images.update('id');

  console.log(image.image_id);
}

main();
{
  "image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Product Id

Query Parameters

force_update
boolean | null

Response

200 - application/json
Aws s3 presigned URL. Upload image to this URL within 60s
url
string
required
image_id
string | null