메인 콘텐츠로 건너뛰기
PUT
/
brands
/
{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 response = await client.brands.updateImages('id');

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

인증

Authorization
string
header
필수

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

경로 매개변수

id
string
필수

Brand Id

응답

200 - application/json

Generate presigned upload URL for brand image

image_id
string<uuid>
필수

UUID that will be used as the image identifier/key suffix

url
string
필수

Presigned URL to upload the image