Fecify-店铺-更改主账号
接口信息
- 接口地址:
{your-site-url}/api/skill/shop/change-shop-main-manager - 基础 URL:
{your-site-url}需替换为你自己的独立站 URL 地址,如https://your-domain.com/admin - 请求方式:
POST - Content-Type:
application/json - 说明: 更改店铺的主账号。主账号 ID 通过 账号-选择列表 获取。
认证
请求头中需要携带 skill-access-token:
| Header | 值 |
|---|---|
skill-access-token |
{your-skill-access-token} (请替换为你自己的 token) |
请求参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
shop_id |
Number | 是 | 店铺 ID |
main_manager_id |
Number | 是 | 新主账号 ID,对应 账号-选择列表 中的 id |
请求示例
cURL
curl --location --request POST '{your-site-url}/api/skill/shop/change-shop-main-manager' \
--header 'skill-access-token: {your-skill-access-token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"shop_id": 15,
"main_manager_id": 138
}'
返回结果
code 为 200 表示成功;code 不为 200 表示失败。
成功响应
{
"code": 200,
"data": [],
"message": "success"
}
注意事项
main_manager_id需从 账号-选择列表 中获取合法账号 ID。