注意: - 当 siteName 为 "自定义平台" 时,系统会判断此为自定义平台。如果 domainName 相同,则不会新增账号记录。 - 当 siteName 为官方内置平台名称(如“加拿大亚马逊”)时,系统会判断此为内置平台。需要平台名称 (siteName) 和平台账号 (accountName) 都相同,才不会被添加;如果其中任何一个不同,都会添加一条新的账号记录。
{ "accountName": "zhanghao", // 平台账号 "accountPassword": "password", // 平台密码 "containerCode": 854921712, // 环境编号 "domainName": "https://www.baidu.com", // 自定义平台的域名 "name": "账号名称", // 自定义账号名称 "otpSecret": "otpSecret", // 2FA密钥 "siteAlias": "自定义平台", // 自定义平台的别名 "siteName": "自定义平台" // 平台名称 }
curl --location --request POST 'http://127.0.0.1:6873/api/v1/container/add-account' \ --header 'Authorization: ' \ --header 'X-Nonce-Id: ' \ --header 'X-Api-Id: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "accountName": "zhanghao", // 平台账号 "accountPassword": "password", // 平台密码 "containerCode": 854921712, // 环境编号 "domainName": "https://www.baidu.com", // 自定义平台的域名 "name": "账号名称", // 自定义账号名称 "otpSecret": "otpSecret", // 2FA密钥 "siteAlias": "自定义平台", // 自定义平台的别名 "siteName": "自定义平台" // 平台名称 }'
{ "code": 0, "msg": "Success", "requestId": "5e4694a6369b46b09c1288c5efd8b905", "timestamp": 1756097123655, "data": true }