Ir al contenido

tys.garments.updateDraft()

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

Method@tryyoursize/node

Replaces a draft’s content (published versions never change: 409).

updateDraft(id: string, garment: GarmentInput, options?: RequestOptions): Promise<GarmentVersion>
idstringObligatorio

The draft's ID.

garmentGarmentInputObligatorio
Propiedades
categoryGarmentCategoryObligatorio

The garment type; it sets which POMs are needed.

fit_intentFitIntentObligatorio

The designer's intended silhouette; sets the ease targets the fit judgement compares against.

sizesstring[]Obligatorio

Size labels, smallest to largest.

pomsPOMTableObligatorio

Garment measurements per size: size label → POM code → millimetres. Widths are flat half-measurements. See GET /v1/studio/garment_dictionary for codes and plausible ranges.

gradingGradingRuleOpcional

How the POM table was derived: the base size's values plus, per POM, the increment (mm) between each pair of consecutive sizes (len = number of sizes - 1). The table stays the source of truth.

fabricFabricObligatorio

What the tech pack / mill sheet says.

import_idstringOpcional

Pattern import linked to this version (omit to unlink).

seasonstringOpcional

Season tag, e.g. "SS27".

tolerances_mmTolerancesMMOpcional

Spec-sheet tolerance per POM code, ± mm (e.g. {"chest_width": 10}). Optional; the flat preview uses ±5 mm when a POM has none.

spec_sourceSpecSourceOpcional

Where the POM table came from, kept for audit. Set by Studio's paste/import.

optionsRequestOptionsOpcional

Promise<GarmentVersion>: The updated draft. Published versions never change (409 conflict).

await tys.garments.updateDraft(draft.id, { ...garment, season: "SS27" }); // replaces the draft

¿Te ha resultado útil esta página?