子账号删除
DELETE
/api/v2/applications/{appId}/sub-account
请求参数
Path 参数
appId
string
APP ID
示例值:
61df925846bed781f5757166
Header 参数
Authorization
string
Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
mainAccountId
string
必需
account
string
子账号
示例
{
"mainAccountId": "string",
"account": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://core.authing.cn/api/v2/applications/61df925846bed781f5757166/sub-account' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw '{
"mainAccountId": "string",
"account": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 200,
"message": "删除子账号成功"
}