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

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

async function main() {
  const response = await client.addons.updateImages('id');

  console.log(response.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

Addon Id

Response

200 - application/json
Generate presigned upload URL for addon image
image_id
string
required
url
string
required