POST api/boatyard/SpacesAvailable

Lists berths available for the given date period and marina. Only returns berths available for the exact period requested.

Request Information

URI Parameters

None.

Body Parameters

BerthsAvailableByBerthTypeRequestModel
NameDescriptionTypeAdditional information
MarinaCode

Marina code to check availability at

string

Required

Date

Start date of availability check

date

Required

Duration

Duration to check availability for

integer

Required

BoatNo

BoatNo to check availability for - either this or boat length must be specified

integer

None.

BoatLength

Boat length to check availability for - either this or boatNo must be specified

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "marinaCode": "sample string 1",
  "date": "2026-03-30T16:57:07.9150089+01:00",
  "duration": 2,
  "boatNo": 1,
  "boatLength": 1.1
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="MarinaCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Date"

2026-03-30T16:57:07.9150089+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Duration"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BoatNo"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BoatLength"

1.1
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

BerthsAvailableByBerthTypeListModel
NameDescriptionTypeAdditional information
BerthsAvailable

List of berth types and berths available

None.

Response Formats

application/json, text/json

Sample:
{
  "berthsAvailable": [
    {
      "berthTypeCode": "sample string 1",
      "berthType": "sample string 2",
      "berths": [
        {
          "berthNo": "sample string 1"
        },
        {
          "berthNo": "sample string 1"
        }
      ]
    },
    {
      "berthTypeCode": "sample string 1",
      "berthType": "sample string 2",
      "berths": [
        {
          "berthNo": "sample string 1"
        },
        {
          "berthNo": "sample string 1"
        }
      ]
    }
  ]
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[0].BerthTypeCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[0].BerthType"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[0].Berths[0].BerthNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[0].Berths[1].BerthNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[1].BerthTypeCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[1].BerthType"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[1].Berths[0].BerthNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BerthsAvailable[1].Berths[1].BerthNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e--