Skip to content
Vellum

Assign a berth

PUT /berths/{berthId}/assign

Authorization

harborAuth Authorization: Bearer <token>

Get a token the way a real API hands one out. The client ID is harbor-docs, and for client credentials the secret is harbor-docs-secret.

bearerAuth Authorization: Bearer <token>

Or skip signing in. Any token will do here. Without one the answer is a 401.

Path parameters

berthId* string

The berth, as painted on the quay.

Example B7

Request body

application/json

kind says which of these it is.

For a ship kind: ship
kind* string

Value in ship

shipId* integer

The ship that ties up here.

until? string

When the berth is free again. Left out, it is held until the ship leaves.

Format date-time

Reserved kind: reserved
kind* string

Value in reserved

reason* string

Why no ship may use it.

Responses

200 The berth and what holds it. application/json
berth? string
shipId? integer | null
reason? string | null
until? string | null

Format date-time

422 The kind was missing, or what it needs was. application/json
message* string
errors? object