DeleteWaitlistEntry 方法
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
客户端使用 DeleteWaitlistEntry 删除现有候补名单条目。
如果因业务逻辑错误而导致预订更新失败,则应将相应错误填充到响应中。针对不存在的资源执行删除操作时,应返回 HTTP 状态代码 404(未找到)。
请求
DeleteWaitlistEntryRequest
返回值
google.protobuf.Empty(空消息)
// Cancel the user's entry in the waitlist.
message DeleteWaitlistEntryRequest {
// Required. The partner-provided ID for the waitlist entry to be deleted.
string waitlist_entry_id = 1;
}
DeleteWaitlistEntry 示例
删除请求
{ "waitlist_entry_id": "MYS-1668739060" }
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eDeleteWaitlistEntry\u003c/code\u003e method allows clients to remove an existing waitlist entry.\u003c/p\u003e\n"],["\u003cp\u003eRequests must include the \u003ccode\u003ewaitlist_entry_id\u003c/code\u003e in the request body.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful deletion returns an empty response, while attempts to delete non-existent entries result in a 404 (Not Found) error.\u003c/p\u003e\n"],["\u003cp\u003eBusiness logic errors during deletion will be indicated in the response.\u003c/p\u003e\n"]]],["The `DeleteWaitlistEntry` method removes a waitlist entry using its partner-provided `waitlist_entry_id`. A failed update due to business logic errors will include the error in the response. Deleting a non-existent entry results in a 404 (Not Found) HTTP status code. The request requires a `waitlist_entry_id`, and successful deletion returns an empty message. A sample request uses a `waitlist_entry_id`, like \"MYS-1668739060\", with an empty JSON object returned on success.\n"],null,["# DeleteWaitlistEntry method\n\nThe client uses DeleteWaitlistEntry delete an existing waitlist entry.\n\nIf updating a booking fails due to any business logic error, the error\nshould be populated in the response. Delete for non-existing resources\nshould return\n[HTTP status code](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/status-codes) 404 (Not Found).\n\n**Request**\n\nDeleteWaitlistEntryRequest\n\n**Return value**\n\ngoogle.protobuf.Empty (an empty message) \n\n```scilab\n// Cancel the user's entry in the waitlist.\nmessage DeleteWaitlistEntryRequest {\n // Required. The partner-provided ID for the waitlist entry to be deleted.\n string waitlist_entry_id = 1;\n}\n```\n\nDeleteWaitlistEntry samples\n---------------------------\n\n### Delete request\n\n```scdoc\n{ \"waitlist_entry_id\": \"MYS-1668739060\" }\n```\n\n### Delete response\n\n```text\n{}\n```"]]