更新用户组
PUT
/core/v1/usergroup
最后修改时间:2024-08-21 04:18:54
责任人:未设置
请求参数
Header 参数
X-Polaris-Token
string
鉴权凭据,必须传
Body 参数application/json
id
string
必需
name
string
必需
add_relation
object
必需
user_ids
array[string]
必需
remove_relation
object
必需
user_ids
array[string]
必需
示例
{
"id": "0873da614c7d4b2bb79f561c9cac5a70",
"name": "TEST_USERGROUP",
"add_relation": {
"user_ids": [
"fb7998003d7f4fe396dd5e38b8e19fdd"
]
},
"remove_relation": {
"user_ids": [
"3e35e80094b14c619ea71722d51d8f3a"
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://119.91.66.223:8090/core/v1/usergroup' \
--header 'X-Polaris-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "0873da614c7d4b2bb79f561c9cac5a70",
"name": "TEST_USERGROUP",
"add_relation": {
"user_ids": [
"fb7998003d7f4fe396dd5e38b8e19fdd"
]
},
"remove_relation": {
"user_ids": [
"3e35e80094b14c619ea71722d51d8f3a"
]
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-08-21 04:18:54