createBooking

abstract suspend fun createBooking(unitId: String, startsAt: String, endsAt: String, uniqueRequestId: String = UUID.randomUUID().toString()): Result<Booking>

Create a booking for the given unitId.

Since

1.5.0

Parameters

unitId

the unit id to book.

startsAt

(ISO 8601) start time.

endsAt

(ISO 8601) end time.

uniqueRequestId

optional request id in case of Result.Error. You can retry with the same request id then.