curl --request POST \
--url https://apigw.bienport.com/api/user/add \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'OrganizationId: <organizationid>' \
--data '
{
"firstName": "Mustafa",
"locale": "tr_TR",
"password1": "123qweasdzx",
"password2": "123qweasdzx",
"screenName": "90xxxxxxxxxx",
"birthdayDay": 1,
"birthdayMonth": 1,
"birthdayYear": 1970,
"emailAddress": "[email protected]",
"lastName": "Atatürk",
"male": true,
"middleName": "Kemal",
"nationalId": 11111111111,
"organizationIds": [
14,
65
],
"roleIds": [
123
],
"subscriptionIds": [
123,
133
]
}
'{
"status": false,
"user": {
"userId": 123,
"firstName": "<string>",
"middleName": "<string>",
"lastName": "<string>",
"screenName": "<string>",
"nationalId": 123,
"organizations": [
{
"name": "<string>",
"id": 123
}
],
"organizationIds": [
123
],
"modifiedDate": 123,
"languageId": "<string>",
"failedLoginAttempts": 123,
"status": 123,
"emailAddress": "<string>",
"timeZoneId": "<string>",
"contactId": 123,
"lockout": true,
"roles": [
{
"roleId": 123,
"roleName": "<string>",
"type": 123,
"inherited": true,
"typePK": 123,
"typeName": "<string>"
}
],
"resources": [
{
"resourceId": 123,
"networkId": "<string>",
"resourceName": "<string>",
"enabled": true,
"modelName": "<string>",
"brandName": "<string>",
"treePath": "<string>",
"orgId": 123,
"resourceSensors": [
{
"type": "<string>",
"sensors": [
{
"id": 123,
"resourceId": 123,
"orderNo": 123,
"ioType": "Digital",
"ioDirection": "Input",
"trueValue": "<string>",
"falseValue": "<string>",
"partitions": [
{
"name": "<string>",
"no": 123
}
],
"sensorId": 123,
"description": "<string>",
"hardwareSerialNumber": "<string>",
"sensorName": "<string>"
}
]
}
],
"resourceControllers": [
{
"hardwareSerialNumber": "<string>",
"id": 123,
"resourceId": 123,
"orderNo": 123,
"ioType": "Digital",
"ioDirection": "Input",
"trueValue": "<string>",
"falseValue": "<string>",
"description": "<string>",
"controllerName": "<string>",
"controllerId": 123,
"partitions": [
{
"name": "<string>",
"no": 123
}
]
}
],
"resourceSubscriptionId": 123,
"subscriptionDocumentNo": "<string>",
"resourceType": "Device",
"deviceSubType": "<string>"
}
]
},
"message": "SMS sent. / SMS not sent.",
"userId": 235234
}curl --request POST \
--url https://apigw.bienport.com/api/user/add \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'OrganizationId: <organizationid>' \
--data '
{
"firstName": "Mustafa",
"locale": "tr_TR",
"password1": "123qweasdzx",
"password2": "123qweasdzx",
"screenName": "90xxxxxxxxxx",
"birthdayDay": 1,
"birthdayMonth": 1,
"birthdayYear": 1970,
"emailAddress": "[email protected]",
"lastName": "Atatürk",
"male": true,
"middleName": "Kemal",
"nationalId": 11111111111,
"organizationIds": [
14,
65
],
"roleIds": [
123
],
"subscriptionIds": [
123,
133
]
}
'{
"status": false,
"user": {
"userId": 123,
"firstName": "<string>",
"middleName": "<string>",
"lastName": "<string>",
"screenName": "<string>",
"nationalId": 123,
"organizations": [
{
"name": "<string>",
"id": 123
}
],
"organizationIds": [
123
],
"modifiedDate": 123,
"languageId": "<string>",
"failedLoginAttempts": 123,
"status": 123,
"emailAddress": "<string>",
"timeZoneId": "<string>",
"contactId": 123,
"lockout": true,
"roles": [
{
"roleId": 123,
"roleName": "<string>",
"type": 123,
"inherited": true,
"typePK": 123,
"typeName": "<string>"
}
],
"resources": [
{
"resourceId": 123,
"networkId": "<string>",
"resourceName": "<string>",
"enabled": true,
"modelName": "<string>",
"brandName": "<string>",
"treePath": "<string>",
"orgId": 123,
"resourceSensors": [
{
"type": "<string>",
"sensors": [
{
"id": 123,
"resourceId": 123,
"orderNo": 123,
"ioType": "Digital",
"ioDirection": "Input",
"trueValue": "<string>",
"falseValue": "<string>",
"partitions": [
{
"name": "<string>",
"no": 123
}
],
"sensorId": 123,
"description": "<string>",
"hardwareSerialNumber": "<string>",
"sensorName": "<string>"
}
]
}
],
"resourceControllers": [
{
"hardwareSerialNumber": "<string>",
"id": 123,
"resourceId": 123,
"orderNo": 123,
"ioType": "Digital",
"ioDirection": "Input",
"trueValue": "<string>",
"falseValue": "<string>",
"description": "<string>",
"controllerName": "<string>",
"controllerId": 123,
"partitions": [
{
"name": "<string>",
"no": 123
}
]
}
],
"resourceSubscriptionId": 123,
"subscriptionDocumentNo": "<string>",
"resourceType": "Device",
"deviceSubType": "<string>"
}
]
},
"message": "SMS sent. / SMS not sent.",
"userId": 235234
}addNewPortalUserRequest
User Add Request Model
First Name
"Mustafa"
Locale
"tr_TR"
"123qweasdzx"
Repeat Password
"123qweasdzx"
Screen Name
"90xxxxxxxxxx"
Birthday Day(Optional)
1
Birthday Month(Optional)
1
Birthday Year(Optional)
1970
Email Address(Optional)
Last Name(Optional)
"Atatürk"
Gender(Optional)
true
Middle Name(Optional)
"Kemal"
User national ID
11111111111
Organization Ids(Optional)
[14, 65]Role Ids(Optional)
User subscription Ids
[123, 133]Created User.
The sending status of the SMS.
false
Add User response model
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Digital, Analog, AnalogDigital, SerialUSART, SerialRS232, SerialRS485, SerialCAN, SerialEthernet, SerialI2C, SerialSPI, SerialOneWire, User, SerialMdb, SerialWireless Input, Output, InputOutput Show child attributes
Digital, Analog, AnalogDigital, SerialUSART, SerialRS232, SerialRS485, SerialCAN, SerialEthernet, SerialI2C, SerialSPI, SerialOneWire, User, SerialMdb, SerialWireless Input, Output, InputOutput Device, ThirdParty, Virtual, Gateway The sending message of the SMS.
"SMS sent. / SMS not sent."
User ID. ( If a verification code is requested again, it will return. )
235234