跳转到主要内容
POST
Assign Google Business Profile location to another profile

请求规范

  • 方法与路径: POST /apis/v1/social/accounts/{accountId}/gmb-locations/assign
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/accounts/{accountId}/gmb-locations/assign
  • accountId: path; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

accountId
string
必填

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$

请求体

application/json
profileId
string
必填

One of your profiles (prf_...).

Pattern: ^prf_[0-9A-Za-z]{22}$
selectedLocationId
string
必填

The Google Business Profile location ID to assign (e.g. "locations/123").

googleAccountId
string

Optional but recommended. The Google Business Profile Account resource name ("accounts/123") that owns the location (from GET gmb-locations). When provided the location is resolved directly instead of by enumerating the account, required for accounts with many locations.

响应

Location assigned to the target profile

account
object
message
string