更新角色管理
本地
本地
PUT
http://127.0.0.1:9999/api/v1/role
角色管理
请求参数
Header 参数
x-token
string
可选
默认值:
{{x-token}}
Body 参数application/json
authority
array[string]
可选
description
string
角色描述
<= 500 字符
id
string
角色id
<= 36 字符
name
string
角色名称
<= 255 字符
示例
{
"authority": [
"string"
],
"description": "string",
"id": "string",
"name": "string"
}
示例代码
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://127.0.0.1:9999/api/v1/role' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
角色id
name
string
角色名称
description
string
描述
created_at
string
创建时间
updated_at
string
修改时间
tenant_id
string
租户id
示例
{
"code": 200,
"message": "Update role successfully",
"data": {
"id": "4b6589dc-628c-c648-319f-6f305e036d4f",
"name": "门往备以家比123123",
"description": "比路们认走音性际变连强就命。成证已南收中石要重对结火常但万具长完。器王间会法行流情流生处广导常影劳什。",
"created_at": "2024-03-05T22:33:32.69725Z",
"updated_at": "2024-03-05T22:35:49.98178Z",
"tenant_id": "aaaaaaaa"
}
}
修改于 2025-03-25 02:44:34