Ir al contenido

tys.products.update()

Esta página aún no está disponible en tu idioma.

Method@tryyoursize/node

Replaces the SKU, name and category (all three required).

update(idOrSku: string, input: ProductInput, options?: RequestOptions): Promise<Product>
idOrSkustringObligatorio

The product's TryYourSize ID or your SKU (URL-encoded for you, so TEE/01 works).

inputProductInputObligatorio
Propiedades
external_idstringObligatorio
namestringObligatorio
categoryGarmentCategoryObligatorio

The garment type; it sets which POMs are needed.

optionsRequestOptionsOpcional

Promise<Product>: The updated product.

await tys.products.update("TEE-001", { external_id: "TEE-001", name: "Basic tee (organic)", category: "tshirt" });

¿Te ha resultado útil esta página?