REST Resource: accounts.invitations
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.
Tài nguyên: Lời mời
Chỉ có đầu ra. Đại diện cho một lời mời đang chờ xử lý.
Biểu diễn dưới dạng JSON |
{
"name": string,
"role": enum (AdminRole ),
// Union field target can be only one of the following:
"targetAccount": {
object (Account )
},
"targetLocation": {
object (TargetLocation )
}
// End of list of possible types for union field target .
} |
Trường |
name |
string
Tên tài nguyên cho lời mời.
|
role |
enum (AdminRole )
Vai trò được mời đối với tài khoản.
|
Trường kết hợp target . Cho biết mục tiêu của lời mời này. target chỉ có thể là một trong những trạng thái sau đây: |
targetAccount |
object (Account )
Lời mời này dành cho tài khoản được điền thưa thớt.
|
targetLocation |
object (TargetLocation )
Vị trí mục tiêu mà lời mời này dành cho.
|
TargetLocation
Đại diện cho vị trí mục tiêu cho lời mời đang chờ xử lý.
Biểu diễn dưới dạng JSON |
{
"locationName": string,
"locationAddress": string
} |
Trường |
locationName |
string
Tên của vị trí mà người dùng được mời.
|
locationAddress |
string
Địa chỉ của vị trí mà người dùng được mời.
|
Phương thức |
accept (deprecated)
|
Chấp nhận lời mời đã chỉ định. |
|
Từ chối lời mời đã chỉ định. |
list (deprecated)
|
Liệt kê các lời mời đang chờ xử lý cho tài khoản đã chỉ định. |
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\u003eThis documentation details the 'Invitation' resource, which represents a pending invitation to a Google Business Profile account or location.\u003c/p\u003e\n"],["\u003cp\u003eInvitations specify a role for the invitee and the target account or location.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eTargetLocation\u003c/code\u003e object is used when the invitation is for a specific location within a business account, providing the location's name and address.\u003c/p\u003e\n"],["\u003cp\u003eThe available methods (accept, decline, list) for managing invitations are deprecated.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.invitations\n\n- [Resource: Invitation](#Invitation)\n - [JSON representation](#Invitation.SCHEMA_REPRESENTATION)\n- [TargetLocation](#TargetLocation)\n - [JSON representation](#TargetLocation.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Invitation\n--------------------\n\nOutput only. Represents a pending invitation.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"role\": enum (/my-business/reference/rest/v4/AdminRole), // Union field `target` can be only one of the following: \"targetAccount\": { object (/my-business/reference/rest/v4/accounts#Account) }, \"targetLocation\": { object (/my-business/reference/rest/v4/accounts.invitations#TargetLocation) } // End of list of possible types for union field `target`. } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `name` | `string` The resource name for the invitation. |\n| `role` | `enum (`[AdminRole](/my-business/reference/rest/v4/AdminRole)`)` The invited role on the account. |\n| Union field `target`. Indicates the target this invitation is for. `target` can be only one of the following: |||\n| `targetAccount` | `object (`[Account](/my-business/reference/rest/v4/accounts#Account)`)` The sparsely populated account this invitation is for. |\n| `targetLocation` | `object (`[TargetLocation](/my-business/reference/rest/v4/accounts.invitations#TargetLocation)`)` The target location this invitation is for. |\n\nTargetLocation\n--------------\n\nRepresents a target location for a pending invitation.\n\n| JSON representation ||\n|---------------------------------------------------------------|---|\n| ``` { \"locationName\": string, \"locationAddress\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------|\n| `locationName` | `string` The name of the location to which the user is invited. |\n| `locationAddress` | `string` The address of the location to which the user is invited. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------|------------------------------------------------------|\n| ### [accept](/my-business/reference/rest/v4/accounts.invitations/accept)` ` **(deprecated)** | Accepts the specified invitation. |\n| ### [decline](/my-business/reference/rest/v4/accounts.invitations/decline)` ` **(deprecated)** | Declines the specified invitation. |\n| ### [list](/my-business/reference/rest/v4/accounts.invitations/list)` ` **(deprecated)** | Lists pending invitations for the specified account. |"]]