Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Anfrage
CreateLeaseRequest
Rückgabewert
CreateLeaseResponse
Voraussetzungen:
„lease_id“ muss vom Back-End des Partners erstellt und in „CreateLeaseResponse“ festgelegt werden.
"lease_expiration_time" muss in "CreateLeaseResponse" festgelegt werden.
Wenn das Ressourcenfeld in "CreateLeaseRequest" angegeben ist, muss es in "CreateLeaseResponse" festgelegt werden und mit "CreateLeaseRequest" übereinstimmen.
Alle anderen Felder in "CreateLeaseResponse" müssen festgelegt sein und mit "CreateLeaseRequest" übereinstimmen.
Kanonische gRPC-Fehlercodes
INVALID_ARGUMENT (ungültige Händler-ID, Dienstleistungs-ID, Client-Referenz oder Zeitangabe für den Slot)
ALREADY_EXISTS (wenn der Client bereits eine Lease für den Slot hat)
RESOURCE_EXHAUSTED (wenn der Slot nicht verfügbar ist)
// Request to create a [ext.maps.booking.partner.v0.Lease] for a slot in the// inventory. The expiration time in the returned Lease may be modified by the// backend, e.g. if the requested lease period is too long.messageCreateLeaseRequest{// The lease to be created with information about the appointment slotLeaselease=1;}// Response for the [ext.maps.booking.partner.v0.CreateLease] RPC with the// created [ext.maps.booking.partner.v0.Lease]messageCreateLeaseResponse{// The created [ext.maps.booking.partner.v0.Lease]Leaselease=1;}
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[],["The `CreateLeaseRequest` initiates a lease creation, and `CreateLeaseResponse` returns the created lease. The partner backend must generate the `lease_id` and `lease_expiration_time` in the response. If `resources` is in the request, it must be mirrored in the response. All other response fields should mirror the request. Potential gRPC errors include `INVALID_ARGUMENT`, `ALREADY_EXISTS` if a lease exists, or `RESOURCE_EXHAUSTED` if the slot is unavailable. The response might adjust the expiration time.\n"]]