> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rollfi.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# updateBusinessUser

> 
The `updateBusinessUser` API updates Business User details in the system.

### What it does:

- Supports multiple roles: Payroll Admin, Controller, Beneficial Owner, Employee
- Preserves existing user data while updating only specified fields

### Notes:

- Run `getBusinessUserDetails` endpoint first to get current information before updating
- Requires ownership percentage specification for Beneficial Owner role



## OpenAPI

````yaml put /adminPortal/updateBusinessUser
openapi: 3.0.1
info:
  title: Default module
  description: ''
  version: 1.0.0
servers: []
security:
  - basic: []
tags: []
paths:
  /adminPortal/updateBusinessUser:
    put:
      tags: []
      summary: updateBusinessUser
      description: >-

        The `updateBusinessUser` API updates Business User details in the
        system.


        ### What it does:


        - Supports multiple roles: Payroll Admin, Controller, Beneficial Owner,
        Employee

        - Preserves existing user data while updating only specified fields


        ### Notes:


        - Run `getBusinessUserDetails` endpoint first to get current information
        before updating

        - Requires ownership percentage specification for Beneficial Owner role
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  title: updateBusinessUser
                  example: updateBusinessUser
                businessUser:
                  type: object
                  properties:
                    businessUserId:
                      type: string
                    firstName:
                      type: string
                      maxLength: 40
                    middleName:
                      type: string
                      maxLength: 40
                    lastName:
                      type: string
                      maxLength: 40
                    phoneNumber:
                      type: string
                      title: Must be 10 Digits
                      example: '9874563210'
                    email:
                      type: string
                      maxLength: 35
                    address1:
                      type: string
                      maxLength: 40
                    address2:
                      type: string
                      maxLength: 40
                    city:
                      type: string
                      maxLength: 40
                    state:
                      type: string
                      title: Enum
                      maxLength: 2
                      enum:
                        - TX
                        - AK
                        - ND
                        - IL
                        - MA
                        - KS
                        - AS
                        - AL
                        - UT
                        - SD
                        - MI
                        - DC
                        - GA
                        - SC
                        - TN
                        - OK
                        - CO
                        - CA
                        - ME
                        - MO
                        - WY
                        - MD
                        - VT
                        - NM
                        - CT
                        - AZ
                        - WI
                        - VA
                        - WV
                        - NJ
                        - DE
                        - NC
                        - PR
                        - IN
                        - MT
                        - NH
                        - HI
                        - IA
                        - KY
                        - WA
                        - OH
                        - FL
                        - OR
                        - MP
                        - GU
                        - MN
                        - MS
                        - PA
                        - NE
                        - RI
                        - ID
                        - LA
                        - NY
                        - NV
                        - AR
                    zipcode:
                      type: string
                      title: Must be Five or Nine Digits
                    country:
                      type: string
                      enum:
                        - US
                    ssn:
                      type: string
                      example: 987-65-1243
                    payrollAdmin:
                      type: boolean
                    bookKeeper:
                      type: boolean
                    beneficialOwner:
                      type: boolean
                  required:
                    - businessUserId
                  x--orders:
                    - businessUserId
                    - firstName
                    - lastName
                    - phoneNumber
                    - email
                    - address1
                    - city
                    - state
                    - zipcode
                    - country
                    - isPayrollAdmin
                    - isController
                    - isBeneficialOwner
                    - isEmployee
                    - middleName
                    - address2
                    - ssn
              required:
                - method
                - businessUser
              x--orders:
                - method
                - businessUser
            example: "{\r\n    \"method\": \"updateBusinessUser\",\r\n    \"businessUser\": {\r\n        \"businessUserId\": \"67DEFFE5-ADC9-4B21-A3B4-194C468290F4\",\r\n        \"firstName\": \"Marcus\",\r\n        \"middleName\": \"\",\r\n        \"lastName\": \"Steve\",\r\n        \"email\": \"marcus020@sto.com\",\r\n        \"phoneNumber\": \"9988884377\",\r\n        \"address1\": \"8745 Colard Ln\",\r\n        \"address2\": \"\",\r\n        \"city\": \"Lyons\",\r\n        \"state\": \"CO\",\r\n        \"zipcode\": \"80540\",\r\n        \"country\": \"US\",\r\n        \"ssn\": \"745896325\",\r\n        \"dateOfBirth\": \"2000-09-09\",\r\n        \"payrollAdmin\": true,\r\n        \"bookkeeper\": true,\r\n        \"beneficialOwner\": true,\r\n        \"ownershipPercentage\": 25,\r\n    }\r\n}"
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  businessUser:
                    type: object
                    properties:
                      businessUserId:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                    required:
                      - businessUserId
                      - status
                    x--orders:
                      - businessUserId
                      - status
                      - message
                required:
                  - businessUser
                x--orders:
                  - businessUser
              example:
                businessUser:
                  businessUserId: 3819B535-F3AA-4E5E-A055-16D33CE68315
                  status: Ready
                  message: The Business User has been updated successfully.
          headers: {}
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: integer
                        message:
                          type: string
                      required:
                        - code
                required:
                  - error
              example:
                error:
                  code: 400
                  message: First Name should not exceed 40 characters.
          headers: {}
      deprecated: false
      security:
        - basic: []
components:
  securitySchemes:
    basic:
      type: http
      scheme: basic

````