メインコンテンツへスキップ
PUT
/
products
/
{id}
/
images
JavaScript
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);
{
  "url": "<string>",
  "image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

Product Id

クエリパラメータ

force_update
boolean

レスポンス

Aws s3 presigned URL. Upload image to this URL within 60s

url
string
必須
image_id
string<uuid> | null