Function: createReferenceImage()
createReferenceImage(
client,props):Promise<{id:number;productId:number;description:string;fileOid:string;createdAt:string;updatedAt:string; }>
Adds a reference image to a product.
Parameters
client
The API client instance
props
The request properties
params
{ orgName: string; projectName: string; productCode: string; } = createReferenceImageParamsSchema
Path parameters (orgName, projectName, productCode)
params.orgName
string = orgNameSchema
params.projectName
string = projectNameSchema
params.productCode
string = productCodeSchema
body
{ uploadToken: string; description?: string; } = createReferenceImageBodySchema
Body with uploadToken and optional description
body.uploadToken
string = ...
body.description?
string = ...
Returns
Promise<{ id: number; productId: number; description: string; fileOid: string; createdAt: string; updatedAt: string; }>
Promise resolving to the created reference image
Operation Id
create-reference-image