Skip to main content
PUT
/
user
/
update
Update User
curl --request PUT \
  --url https://apigw.bienport.com/api/user/update \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'OrganizationId: <organizationid>' \
  --data '{
  "birthdayDay": 1,
  "birthdayMonth": 1,
  "birthdayYear": 1970,
  "emailAddress": "example@example.com",
  "firstName": "Mustafa",
  "languageId": "tr_TR",
  "lastName": "Atatürk",
  "male": true,
  "middleName": "Kemal",
  "nationalId": 11111111111,
  "newPassword1": "123qweasdzx",
  "newPassword2": "123qweasdzx",
  "oldPassword": "123qweasdzx",
  "roleIds": [
    20167
  ],
  "screenName": "90xxxxxxxxxx",
  "userId": 12343123
}'
{
  "userId": 123,
  "firstName": "<string>",
  "middleName": "<string>",
  "lastName": "<string>",
  "screenName": "<string>",
  "nationalId": 123,
  "organizations": [
    {
      "name": "<string>",
      "id": 123
    }
  ],
  "organizationIds": [
    123
  ],
  "lockout": true,
  "graceLoginCount": 123,
  "emailAddress": "<string>",
  "modifiedDate": 123,
  "createDate": 123,
  "languageId": "<string>",
  "timeZoneId": "<string>",
  "failedLoginAttempts": 123,
  "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>"
    }
  ]
}

Headers

Authorization
string
required

Access Token

OrganizationId
string
required

Organization ID

Body

application/json

updateMobileUserRequest

User Update Request Model

birthdayDay
integer

Birthday Day(Optional)

Example:

1

birthdayMonth
integer

Birthday Month(Optional)

Example:

1

birthdayYear
integer

Birthday Year(Optional)

Example:

1970

emailAddress
string

Email Address(Optional)

Example:

"example@example.com"

firstName
string

First Name

Example:

"Mustafa"

languageId
string

Locale

Example:

"tr_TR"

lastName
string

Last Name(Optional)

Example:

"Atatürk"

male
boolean

Gender(Optional)

Example:

true

middleName
string

Middle Name(Optional)

Example:

"Kemal"

nationalId
integer

User national ID

Example:

11111111111

newPassword1
string

New Password (If you want to change password its required)

Example:

"123qweasdzx"

newPassword2
string

Repeat New Password (If you want to change password its required)

Example:

"123qweasdzx"

oldPassword
string

Old Password (If you want to change password its required)

Example:

"123qweasdzx"

roleIds
integer[]

Role Ids(Optional)

Example:
[20167]
screenName
string

Screen Name

Example:

"90xxxxxxxxxx"

userId
integer

User Id

Example:

12343123

Response

Updated User.

Update User response model

userId
integer
firstName
string
middleName
string
lastName
string
screenName
string
nationalId
integer
organizations
Organization · object[]
organizationIds
integer[]
lockout
boolean
graceLoginCount
integer
emailAddress
string
modifiedDate
integer
createDate
integer
languageId
string
timeZoneId
string
failedLoginAttempts
integer
roles
RoleResponse · object[]
resources
GetResourceResponse · object[]