单个用户进行应用授权
POST/appcenter/apps/grantUser
单个用户进行应用授权(需组织管理员权限)
History
Version | Changes |
---|---|
v6.0.? | Added in: v6.0.? |
Request
- application/json
Body
userID stringrequired
用户ID
appIDs string[]required
授权应用列表
Responses
- 200
- 401
- 403
- 404
- 500
请求成功
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
错误码
InvalidParameter | 参数不合法 |
MissingParameter | 缺少参数 |
PermissionDenied | 无权限 |
NotFoundUser | 用户未找到 |
NotFoundApp | 应用未找到 |
NotFoundAppLicenseOrExpired | 未找到应用授权或授权已过期 |
LicenseLimited | 许可证人数限制 |
UnsupportedGrant | 应用不支持用户授权 |
result string
本次请求结果,SUCCESS|FAIL
errorMsg string
本次请求错误信息
errorData object
本次请求错误元数据
{
"errorCode": "string",
"result": "string",
"errorMsg": "string",
"errorData": {}
}
如果身份验证凭据不正确或丢失,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
如果scope检验不通过,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
如果未找到资源对象,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
内部服务器错误
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}
Loading...