拒绝 / 撤回 授权
POST
/api/v2/applications/{appId}/authorization/deny
请求参数
Path 参数
appId
string
必需
示例值:
61df928934f927599a1fa212
Header 参数
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Authorization
string
Token
示例值:
Bearer sdfsdfsdff
Body 参数application/json
targetType
enum<string>
必需
枚举值:
USERROLEGROUPORGAK_SK
targetIdentifiers
array[string]
必需
targetNamespace
string
必需
inheritByChildren
string
必需
示例
{
"targetType": "USER",
"targetIdentifiers": [
"string"
],
"targetNamespace": "string",
"inheritByChildren": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/applications/61df928934f927599a1fa212/authorization/deny' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Authorization: Bearer sdfsdfsdff' \
--header 'Content-Type: application/json' \
--data-raw '{
"targetType": "USER",
"targetIdentifiers": [
"string"
],
"targetNamespace": "string",
"inheritByChildren": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 200,
"message": "拒绝访问成功"
}
修改于 2022-01-13 03:58:39