Method: locations.transfer
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Di chuyển vị trí từ tài khoản mà người dùng sở hữu sang một tài khoản khác mà người dùng đó quản lý. Người dùng phải là chủ sở hữu của tài khoản mà vị trí đó hiện đang được liên kết và ít nhất cũng phải là người quản lý của tài khoản đích.
Yêu cầu HTTP
POST https://mybusinessaccountmanagement.googleapis.com/v1/{name=locations/*}:transfer
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
name |
string
Bắt buộc. Tên của vị trí cần chuyển. locations/{locationId} .
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"destinationAccount": string
} |
Trường |
destinationAccount |
string
Bắt buộc. Tên của tài nguyên tài khoản để chuyển vị trí đến (ví dụ: "accounts/{account}").
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/business.manage
Để biết thêm thông tin, hãy xem bài viết Tổng quan về OAuth 2.0.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eTransfers a location between two accounts owned/managed by the same user, requiring ownership of the origin account and at least manager status on the destination account.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP POST request to \u003ccode\u003ehttps://mybusinessaccountmanagement.googleapis.com/v1/{name=locations/*}:transfer\u003c/code\u003e, specifying the location with \u003ccode\u003e{locationId}\u003c/code\u003e in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain the \u003ccode\u003edestinationAccount\u003c/code\u003e field, indicating the target account's name in the format \u003ccode\u003e"accounts/{account}"\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful transfer, the response body will be empty, confirming the location's move.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: locations.transfer\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nMoves a location from an account that the user owns to another account that the same user administers. The user must be an owner of the account the location is currently associated with and must also be at least a manager of the destination account.\n\n### HTTP request\n\n`POST https://mybusinessaccountmanagement.googleapis.com/v1/{name=locations/*}:transfer`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the location to transfer. `locations/{locationId}`. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------|\n| ``` { \"destinationAccount\": string } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------|\n| `destinationAccount` | `string` Required. Name of the account resource to transfer the location to (for example, \"accounts/{account}\"). |\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]