创建授权
接口描述: 为指定应用创建新授权
| 参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
|---|---|---|---|---|---|
| token | 字符串 | 必须 | 管理员令牌 | ||
| app_id | 整型 | 必须 | 最小:1 | 应用ID | |
| license_type | 字符串 | 可选 | standard | 授权类型: trial, standard, enterprise | |
| domains | 字符串JSON格式 | 可选 | 绑定域名列表 | ||
| expire_time | 字符串 | 可选 | 过期时间 (Y-m-d H:i:s) | ||
| remark | 字符串 | 可选 | 备注 |
| 参数名字 | 类型 | 说明 |
|---|---|---|
| id | 整型 | 授权ID |
| license_code | 字符串 | 授权码 |
| license_type | 字符串 | 授权类型 |
| 错误状态码 | 错误描述信息 |
|---|---|
| 400 | 表示客户端参数错误 |
| 404 | 应用不存在 |
| 500 | 表示服务端内部错误 |
| 401 | 未授权 |
| 参数 | 是否必须 | 值 |
|---|---|---|
| service | 必须 | |
| token | 必须 | |
| app_id | 必须 | |
| license_type | 可选 | |
| domains | 可选 | |
| expire_time | 可选 | |
| remark | 可选 |
# 暂无示例,可添加示例文件:./src/view/docs/demos/App.Auth_License.Create.json
接口,从简单开始!
© 2015-2026 Powered By PhalApi开源接口框架 2.23.0
专业版