HTTP/HTTPS
Protocol
YesDev / Platform API / 更新角色信息
更新角色信息
API Url:http://test.www.yesdev.cn/api/platform.php?s=Platform.Roles.UpdateRole
API Description: 编辑更新角色信息
API Parameters
Parameter Name | Type | Is Required | Default | Note | Description |
---|---|---|---|---|---|
access_token | 字符串 | Optional | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
app_key | 字符串 | Optional | app_key,团队代码 | ||
sign | 字符串 | Optional | - | 动态签名,签名算法请联系我们技术客服获取 | |
role_id | 整型 | Required | - | 待删除的角色ID | |
parent_id | 整型 | Required | - | min: 0 | 上级角色ID |
role_name | 字符串 | Required | - | min: 1;max: 30 | 角色名称 |
role_status | 整型 | Optional | 1 | 角色状态,1正常0禁用 |
Return Field
Response Result | Type | Description |
---|---|---|
ret | int | status code, 200 is ok, 4xx is bad request, 5xx is server inside error |
data | object/mixed | business data, decided by API implementation |
data.is_updated | 布尔型 | 是否更新 |
msg | string | message, usually error message |
Test Online
Parameter | Is Required | Value |
---|---|---|
service | Required | |
access_token | Optional | |
app_key | Optional | |
sign | Optional | |
role_id | Required | |
parent_id | Required | |
role_name | Required | |
role_status | Optional |
Client Request Demo
# 暂无示例,可添加示例文件:./src/view/docs/demos/Platform.Roles.UpdateRole.json
Error List
Error Status | Error Description |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
410 | 权限不足 |
500 | 表示服务端内部错误 |
Last generated at: 2025-09-15 22:12:40 联系我们开通接入OpenAPI