- Product
- Category
- _User
- _Installation
- Evidence
- Rule
- Device
- _Role
- License
- View
- Crond
- ProductTemplet
- Channel
- LogLevel
- Wechat
- Instruct
- App
- METER
- Gb26875
- System
- Log
- Project
- Group
- Data
- Notification
- TOPO
- _Session
- Menu
- Maintenance
- Timescale
- Permission
- Dict
- Decoder
- OPC
- Devicelog
- aliyun
- FFMPEG
- Article
- Basic
- Dlink
- BACnet
- UniApp
amis新增用户管理
正式环境
https://prod.iotn2n.com
正式环境
https://prod.iotn2n.com
POST
/iotapi/amis/_User
_User
请求参数
Body 参数application/json
ACL
object
可选
示例值:
{"*":{"read":true,"write":false}}
authData
object
可选
createdAt
string
可选
department
string
可选
email
string
可选
emailVerified
boolean
可选
nick
string
可选
objectId
string
可选
password
string
可选
phone
string
可选
role
object
可选
__type
string
可选
示例值:
Relation
className
string
可选
示例值:
_Role
roles
object
可选
__type
string
可选
示例值:
Relation
className
string
可选
示例值:
_Role
tag
object
可选
updatedAt
string
可选
username
string
可选
示例
{
"ACL": {
"*": {
"read": true,
"write": false
}
},
"authData": {},
"createdAt": "string",
"department": "string",
"email": "string",
"emailVerified": true,
"nick": "string",
"objectId": "string",
"password": "string",
"phone": "string",
"role": {
"__type": "Relation",
"className": "_Role"
},
"roles": {
"__type": "Relation",
"className": "_Role"
},
"tag": {},
"updatedAt": "string",
"username": "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 'https://prod.iotn2n.com/iotapi/amis/_User' \
--header 'Content-Type: application/json' \
--data-raw '{
"ACL": {
"*": {
"read": true,
"write": false
}
},
"authData": {},
"createdAt": "string",
"department": "string",
"email": "string",
"emailVerified": true,
"nick": "string",
"objectId": "string",
"password": "string",
"phone": "string",
"role": {
"__type": "Relation",
"className": "_Role"
},
"roles": {
"__type": "Relation",
"className": "_Role"
},
"tag": {},
"updatedAt": "string",
"username": "string"
}'
返回响应
🟢201Returns success
application/json
Body
createdAt
string <date-time>
创建时间
objectId
string
objectId
示例
{
"createdAt": "2019-08-24T14:15:22Z",
"objectId": "string"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Internal error