# updateParty

Item-only — patch a party's datum fields.

Canonical: https://chart.syidax.com/docs/methods/updateParty/

<a id="definition"></a>

## Definition

```typescript
updateParty(idOrIndex: string | number, patch: Partial<Exclude<ItemChartDatum, number>>): Promise<boolean>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `idOrIndex` | `string \| number` | Required |
| `patch` | `Partial<Exclude<ItemChartDatum, number>>` | Required |

Return type: `Promise<boolean>`. Call the method after element registration and await its Promise result.

- [ItemChartDatum](https://chart.syidax.com/docs/types/ItemChartDatum.md) — Type definition

<a id="related"></a>

## Related charts

- [sy-item-chart](https://chart.syidax.com/docs/components/item.md#method-updateParty)
