# UpdateVesselPayload
Source: https://docs.maelstrom-ai.co/0.2/reference/react/type-aliases/updatevesselpayload/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **UpdateVesselPayload**<`T`, `Id`\> = [`RepublishableVessel`](https://docs.maelstrom-ai.co/0.2/reference/react/type-aliases/republishablevessel/)<`ExtractVesselByIdFromEntries`<`T`, `Id`\>> &amp; `object`

Defined in: packages/react/src/lib/vessel-entry-types.ts:150

Payload type for `m.updateVessel({ id, ... })` — `Id` must be one of the vessel IDs declared in `createMaelstrom({ vessels })`, so a typo’d or runtime-only id fails to compile instead of silently skipping the `RepublishableVessel` shape check.

`T` only knows the vessels declared in `createMaelstrom({ vessels })` — `registerVessel()` adds ids at runtime that never appear in `T`, so `m.updateVessel()` cannot name them. Republish a runtime-registered vessel through `handle.update()` on the handle `registerVessel()` returns instead — it is typed exactly to that call’s inferred vessel definition, with no id lookup needed.

## Type Declaration

### id

> **id**: `Id`

## Type Parameters

### T

`T` _extends_ readonly `AnyVesselEntry`\[\]

### Id

`Id` _extends_ [`VesselIds`](https://docs.maelstrom-ai.co/0.2/reference/react/type-aliases/vesselids/)<`T`\>
