- system
- access
- app
- common
- data
- dict
- log
- module
- ops
- role
- tenant
- user
- notify
- area
- project
- slot
- dept
- job
- open
- data
创建开放认证
POST
/api/v1/system/open/access/create
system/open/accesssystemOpenAccess
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
id
integer <int64>
可选
tenantCode
string
租户号
code
string
自定义编码
userID
string
绑定权限的用户ID
accessSecret
string
秘钥
ipRange
array[string]
可选
desc
string
可选
user
object (UserCore)
可选
userID
string
用户id
userName
string
用户名(唯一)
email
string
邮箱
phone
string
手机号
lastIP
string
最后登录ip
regIP
string
注册ip
nickName
string
用户的昵称
headImg
string
用户头像
tags
object
标签对象
createdTime
string
创建时间
示例
{
"id": 0,
"tenantCode": "string",
"code": "string",
"userID": "string",
"accessSecret": "string",
"ipRange": [
"string"
],
"desc": "string",
"user": {
"userID": "string",
"userName": "string",
"email": "string",
"phone": "string",
"lastIP": "string",
"regIP": "string",
"nickName": "string",
"headImg": "string",
"tags": {},
"createdTime": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system/open/access/create' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (WithID)
可选
id
integer <int64>
id
示例
{
"code": "200",
"msg": "string",
"data": {
"id": 0
}
}
修改于 2025-03-25 09:32:22