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

# Update user by ID

> Update a job

```jsonc Body raw (json) wrap expandable theme={null}
{
  "phone" // optional | string | phone:INTERNATIONAL,<company country>
  "notes" // optional | string | max:2000
  "hourly_billing_rate" // optional | numeric | min:0
  "hourly_cost_rate" // optional | numeric | min:0
  "eligible_for_commission" // optional | boolean
  "tags" // optional | array | array of existing tag ids
  "member_of_teams" // optional | array | array of existing team ids
  "manager_of_teams" // optional | array | array of existing team ids
  "avatar_color" // optional | string | example "#ff0000"
  "commission_method" // optional | nullable | string | acceptable values - default,custom
  "default_commission_type" // optional | nullable | integer | acceptable values - 0(none), 1(gross revenue), 2(gross margin), 3(flat rate)
  "default_commission_percent" // optional | nullable | string |required_if: default_commission_type = 3(flat rate)
  "invoicing_enabled" // optional | boolean
  "invoice_list_permission" // optional | integer | user that controls which invoices and estimates that user can list |  acceptable values - 0(No list), 1(Full list), 2(Only records the user authored)
  "invoice_lock_setting" // optional | string | acceptable values - none, finalized, paid
  "lock_estimate_upon_conversion" // optional | boolean
  "can_create_cardpointe_payment" // optional | boolean
  "can_refund_cardpointe_payment" // optional | boolean
  "commission_access" // optional | nullable | string | acceptable values - hide, view_only, view_edit
  "can_view_customer_list" // optional | boolean
  "view_customer_list_mode" // optional | string | acceptable values - all, assigned
  "can_open_customer_profiles" // optional | boolean
  "customer_contact_details_limitation" // optional | string | acceptable values - none, primary_contact, locations_contacts, all
  "is_able_to_view_customer_contact_info" // optional | boolean
  "is_able_to_view_to_contact_customer_from_mobile_app" // optional | boolean
  "customer_communication_permission" // optional | integer | user that controls which invoices and estimates that user can list | acceptable values - 0(Cannot see any customer communication), 1(can see all customer communication), 2(can see all customer communication)
  "timesheets_enabled" // optional | boolean
  "can_approve_timesheet_geofence_discrepancy" // optional | boolean
  "is_able_to_view_job_costing" // optional | boolean
  "is_pricebook_enabled" // optional | boolean
  "pricebook_show_li_in_groupings" // optional | boolean
  "is_item_list_visible" // optional | boolean
  "is_able_to_view_item_unit_cost" // optional | boolean
  "is_able_to_view_item_unit_price" // optional | boolean
  "is_able_to_create_item_template" // optional | boolean
  "is_able_to_add_line_items" // optional | boolean
  "can_view_orders" // optional | boolean
  "orders_visibility" // optional | nullable | string | acceptable values - all , own
  "orders_functionality" // optional | nullable | string | acceptable values - create, create_edit_own, create_edit_all
  "order_send_order" // optional | boolean
  "is_material_list_enabled" // optional | boolean
  "can_create_material_list" // optional | boolean
  "can_update_material_list" // optional | boolean
  "material_list_view_mode" // optional | nullable | string | acceptable values - all, team, assigned, assigned_or_job, none
  "is_maintenance_agreement_enabled" // optional | boolean
  "can_create_maintenance_agreement" // optional | boolean
  "can_update_maintenance_agreement" // optional | boolean
  "maintenance_agreement_list_visibility" // optional | nullable | string | acceptable values - all, author, assigned
  "is_recurring_billing_enabled" // optional | boolean
  "asset_visibility" // optional | nullable | string | acceptable values - none, view, view_create_edit_assigned, view_create_edit
  "can_view_leads" // optional | boolean
  "can_view_reporting" // optional | boolean
  "can_view_updates" // optional | boolean
  "is_engage_available" // optional | boolean
  "is_marketing_suite_available" // optional | boolean
  "my_assigned_estimates_notification" // optional | array | list of channels that tell a user they were just assigned to a scheduled estimate. An empty array means they are not notified | values - 1(notify via email), 2(notify via push), 3(notify via app)
  "notify_about_estimate_status_change_in_progress" // optional | array | list of channels that user wants when a scheduled estimate moves to the In Progress status type. It is array of channel ids. An empty array means that user gets nothing for this change | values - 1(notify via email), 2(notify via push), 3(notify via app)
  "notify_about_estimate_status_change_pending" // optional | array | list of channels that user wants when a scheduled estimate moves into the Pending status type. An empty array means they are not notified | values - 1(notify via email), 2(notify via push), 3(notify via app)
  "notify_about_estimate_status_change_completed" // optional | array | list of channels that user wants when a scheduled estimate’s status type changes to Completed. An empty array means they are not notified | values - 1(notify via email), 2(notify via push), 3(notify via app)
  "tm_job_visibility" // optional | integer | acceptable values - 0(none), 2(assigned), 3(assigned and unassigned)
  "is_able_to_view_project_costing" // optional | boolean
  "team_assigned_estimates_email_notification" // optional | boolean
  "can_view_team_timesheets" // optional | boolean
  "schedule_limitation" // optional | nullable | string | acceptable values - none, next_job, by_day
  "schedule_day_limitation" // optional | nullable | integer | how many days ahead a Service Agent can see on the schedule when schedule_limitation is by_day | values - null or 0(End of today), 1(End of tomorrow), N(End of the day N days from today)
  "is_able_to_see_jobs_assigned_to_other_users" // optional | boolean
  "is_sa_able_view_related_project_data" // optional | boolean
  "is_sa_able_view_related_project_jobs" // optional | boolean
  "is_sa_able_view_related_project_estimates" // optional | boolean
  "is_sa_able_view_related_project_invoices" // optional | boolean
  "is_sa_able_view_related_project_orders" // optional | boolean
  "is_sa_able_view_related_project_files" // optional | boolean
  "is_sa_able_to_create_jobs_assigned_to_himself" // optional | boolean
  "is_able_to_create_subtasks_on_assigned_jobs" // optional | boolean
  "is_able_to_edit_other_user_subtasks" // optional | boolean
  "can_see_subtasks_assigned_to_others" // optional | boolean
  "is_able_to_see_estimates_invoices_created_by_other_users" // optional | boolean
  "sa_able_create_ma" // optional | boolean
  "sa_able_see_ma_on_custom_profiles" // optional | boolean
  "sa_able_see_custom_list_page" // optional | boolean
  "sa_can_leave_customer_portal_comment" // optional | boolean
}
```


## OpenAPI

````yaml put /users/{id}
openapi: 3.0.0
info:
  title: FieldPulse API
  description: >-
    REST API for the FieldPulse field service management platform.


    **Authentication:** All requests require an `x-api-key` header. Contact
    support@fieldpulse.com to obtain your API key.


    **Important:** The API Playground below makes live requests against your
    production data. Use caution when testing write operations (POST, PUT,
    DELETE).
  version: 1.0.0
servers:
  - url: https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Assets
    description: Endpoints related to assets
  - name: Assets Category
    description: Endpoints related to assets category
  - name: Comments
    description: Endpoints related to comments
  - name: Company Profile
    description: Endpoints related to contracts
  - name: Contracts
    description: Endpoints related to contracts
  - name: Customers
    description: Endpoints related to customers
  - name: Custom Fields
    description: Endpoints related to custom fields
  - name: Estimates
    description: Endpoints related to estimates
  - name: Invoices
  - name: Items
  - name: Jobs
  - name: Lead Source
  - name: Locations
  - name: Maintenance Agreements
  - name: Material Lists
  - name: Payments
  - name: Pipeline Status
  - name: Projects
  - name: Purchase Orders
  - name: Subtasks
  - name: Tags
  - name: Teams
  - name: Timesheets
  - name: Users
  - name: Vendors
  - name: Version
paths:
  /users/{id}:
    put:
      tags:
        - Users
      summary: Update user by ID
      description: Update a job
      operationId: putUsersById
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                phone:
                  type: string
                  description: Phone:INTERNATIONAL,<company country>.
                notes:
                  type: string
                  maxLength: 2000
                hourly_billing_rate:
                  type: number
                  minimum: 0
                hourly_cost_rate:
                  type: number
                  minimum: 0
                eligible_for_commission:
                  type: boolean
                tags:
                  type: array
                  items:
                    type: integer
                  description: Array of existing tag ids.
                member_of_teams:
                  type: array
                  items:
                    type: integer
                  description: Array of existing team ids.
                manager_of_teams:
                  type: array
                  items:
                    type: integer
                  description: Array of existing team ids.
                avatar_color:
                  type: string
                commission_method:
                  type: string
                  nullable: true
                  description: Acceptable values - default,custom.
                default_commission_type:
                  type: integer
                  nullable: true
                  description: >-
                    Acceptable values - 0(none), 1(gross revenue), 2(gross
                    margin), 3(flat rate).
                default_commission_percent:
                  type: string
                  nullable: true
                  description: 'Required_if: default_commission_type = 3(flat rate).'
                invoicing_enabled:
                  type: boolean
                invoice_list_permission:
                  type: integer
                  description: >-
                    User that controls which invoices and estimates that user
                    can list. Acceptable values - 0(No list), 1(Full list),
                    2(Only records the user authored).
                invoice_lock_setting:
                  type: string
                  description: Acceptable values - none, finalized, paid.
                lock_estimate_upon_conversion:
                  type: boolean
                can_create_cardpointe_payment:
                  type: boolean
                can_refund_cardpointe_payment:
                  type: boolean
                commission_access:
                  type: string
                  nullable: true
                  description: Acceptable values - hide, view_only, view_edit.
                can_view_customer_list:
                  type: boolean
                view_customer_list_mode:
                  type: string
                  description: Acceptable values - all, assigned.
                can_open_customer_profiles:
                  type: boolean
                customer_contact_details_limitation:
                  type: string
                  description: >-
                    Acceptable values - none, primary_contact,
                    locations_contacts, all.
                is_able_to_view_customer_contact_info:
                  type: boolean
                is_able_to_view_to_contact_customer_from_mobile_app:
                  type: boolean
                customer_communication_permission:
                  type: integer
                  description: >-
                    User that controls which invoices and estimates that user
                    can list. Acceptable values - 0(Cannot see any customer
                    communication), 1(can see all customer communication), 2(can
                    see all customer communication).
                timesheets_enabled:
                  type: boolean
                can_approve_timesheet_geofence_discrepancy:
                  type: boolean
                is_able_to_view_job_costing:
                  type: boolean
                is_pricebook_enabled:
                  type: boolean
                pricebook_show_li_in_groupings:
                  type: boolean
                is_item_list_visible:
                  type: boolean
                is_able_to_view_item_unit_cost:
                  type: boolean
                is_able_to_view_item_unit_price:
                  type: boolean
                is_able_to_create_item_template:
                  type: boolean
                is_able_to_add_line_items:
                  type: boolean
                can_view_orders:
                  type: boolean
                orders_visibility:
                  type: string
                  nullable: true
                  description: Acceptable values - all , own.
                orders_functionality:
                  type: string
                  nullable: true
                  description: >-
                    Acceptable values - create, create_edit_own,
                    create_edit_all.
                order_send_order:
                  type: boolean
                is_material_list_enabled:
                  type: boolean
                can_create_material_list:
                  type: boolean
                can_update_material_list:
                  type: boolean
                material_list_view_mode:
                  type: string
                  nullable: true
                  description: >-
                    Acceptable values - all, team, assigned, assigned_or_job,
                    none.
                is_maintenance_agreement_enabled:
                  type: boolean
                can_create_maintenance_agreement:
                  type: boolean
                can_update_maintenance_agreement:
                  type: boolean
                maintenance_agreement_list_visibility:
                  type: string
                  nullable: true
                  description: Acceptable values - all, author, assigned.
                is_recurring_billing_enabled:
                  type: boolean
                asset_visibility:
                  type: string
                  nullable: true
                  description: >-
                    Acceptable values - none, view, view_create_edit_assigned,
                    view_create_edit.
                can_view_leads:
                  type: boolean
                can_view_reporting:
                  type: boolean
                can_view_updates:
                  type: boolean
                is_engage_available:
                  type: boolean
                is_marketing_suite_available:
                  type: boolean
                my_assigned_estimates_notification:
                  type: array
                  items: {}
                  description: >-
                    List of channels that tell a user they were just assigned to
                    a scheduled estimate. An empty array means they are not
                    notified. Values - 1(notify via email), 2(notify via push),
                    3(notify via app).
                notify_about_estimate_status_change_in_progress:
                  type: array
                  items:
                    type: integer
                  description: >-
                    List of channels that user wants when a scheduled estimate
                    moves to the In Progress status type. It is array of channel
                    ids. An empty array means that user gets nothing for this
                    change. Values - 1(notify via email), 2(notify via push),
                    3(notify via app).
                notify_about_estimate_status_change_pending:
                  type: array
                  items: {}
                  description: >-
                    List of channels that user wants when a scheduled estimate
                    moves into the Pending status type. An empty array means
                    they are not notified. Values - 1(notify via email),
                    2(notify via push), 3(notify via app).
                notify_about_estimate_status_change_completed:
                  type: array
                  items: {}
                  description: >-
                    List of channels that user wants when a scheduled estimate’s
                    status type changes to Completed. An empty array means they
                    are not notified. Values - 1(notify via email), 2(notify via
                    push), 3(notify via app).
                tm_job_visibility:
                  type: integer
                  description: >-
                    Acceptable values - 0(none), 2(assigned), 3(assigned and
                    unassigned).
                is_able_to_view_project_costing:
                  type: boolean
                team_assigned_estimates_email_notification:
                  type: boolean
                can_view_team_timesheets:
                  type: boolean
                schedule_limitation:
                  type: string
                  nullable: true
                  description: Acceptable values - none, next_job, by_day.
                schedule_day_limitation:
                  type: integer
                  nullable: true
                  description: >-
                    How many days ahead a Service Agent can see on the schedule
                    when schedule_limitation is by_day. Values - null or 0(End
                    of today), 1(End of tomorrow), N(End of the day N days from
                    today).
                is_able_to_see_jobs_assigned_to_other_users:
                  type: boolean
                is_sa_able_view_related_project_data:
                  type: boolean
                is_sa_able_view_related_project_jobs:
                  type: boolean
                is_sa_able_view_related_project_estimates:
                  type: boolean
                is_sa_able_view_related_project_invoices:
                  type: boolean
                is_sa_able_view_related_project_orders:
                  type: boolean
                is_sa_able_view_related_project_files:
                  type: boolean
                is_sa_able_to_create_jobs_assigned_to_himself:
                  type: boolean
                is_able_to_create_subtasks_on_assigned_jobs:
                  type: boolean
                is_able_to_edit_other_user_subtasks:
                  type: boolean
                can_see_subtasks_assigned_to_others:
                  type: boolean
                is_able_to_see_estimates_invoices_created_by_other_users:
                  type: boolean
                sa_able_create_ma:
                  type: boolean
                sa_able_see_ma_on_custom_profiles:
                  type: boolean
                sa_able_see_custom_list_page:
                  type: boolean
                sa_can_leave_customer_portal_comment:
                  type: boolean
            example:
              phone: '+12345678'
              notes: some string
              hourly_billing_rate: 1
              hourly_cost_rate: 1
              eligible_for_commission: true
              tags:
                - 1
              member_of_teams:
                - 1
              manager_of_teams:
                - 1
              avatar_color: '#ff0000'
              commission_method: some string
              default_commission_type: 1
              default_commission_percent: some string
              invoicing_enabled: true
              invoice_list_permission: 1
              invoice_lock_setting: some string
              lock_estimate_upon_conversion: true
              can_create_cardpointe_payment: true
              can_refund_cardpointe_payment: true
              commission_access: some string
              can_view_customer_list: true
              view_customer_list_mode: some string
              can_open_customer_profiles: true
              customer_contact_details_limitation: some string
              is_able_to_view_customer_contact_info: true
              is_able_to_view_to_contact_customer_from_mobile_app: true
              customer_communication_permission: 1
              timesheets_enabled: true
              can_approve_timesheet_geofence_discrepancy: true
              is_able_to_view_job_costing: true
              is_pricebook_enabled: true
              pricebook_show_li_in_groupings: true
              is_item_list_visible: true
              is_able_to_view_item_unit_cost: true
              is_able_to_view_item_unit_price: true
              is_able_to_create_item_template: true
              is_able_to_add_line_items: true
              can_view_orders: true
              orders_visibility: some string
              orders_functionality: some string
              order_send_order: true
              is_material_list_enabled: true
              can_create_material_list: true
              can_update_material_list: true
              material_list_view_mode: some string
              is_maintenance_agreement_enabled: true
              can_create_maintenance_agreement: true
              can_update_maintenance_agreement: true
              maintenance_agreement_list_visibility: some string
              is_recurring_billing_enabled: true
              asset_visibility: some string
              can_view_leads: true
              can_view_reporting: true
              can_view_updates: true
              is_engage_available: true
              is_marketing_suite_available: true
              my_assigned_estimates_notification: []
              notify_about_estimate_status_change_in_progress:
                - 1
              notify_about_estimate_status_change_pending: []
              notify_about_estimate_status_change_completed: []
              tm_job_visibility: 1
              is_able_to_view_project_costing: true
              team_assigned_estimates_email_notification: true
              can_view_team_timesheets: true
              schedule_limitation: some string
              schedule_day_limitation: 1
              is_able_to_see_jobs_assigned_to_other_users: true
              is_sa_able_view_related_project_data: true
              is_sa_able_view_related_project_jobs: true
              is_sa_able_view_related_project_estimates: true
              is_sa_able_view_related_project_invoices: true
              is_sa_able_view_related_project_orders: true
              is_sa_able_view_related_project_files: true
              is_sa_able_to_create_jobs_assigned_to_himself: true
              is_able_to_create_subtasks_on_assigned_jobs: true
              is_able_to_edit_other_user_subtasks: true
              can_see_subtasks_assigned_to_others: true
              is_able_to_see_estimates_invoices_created_by_other_users: true
              sa_able_create_ma: true
              sa_able_see_ma_on_custom_profiles: true
              sa_able_see_custom_list_page: true
              sa_can_leave_customer_portal_comment: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: boolean
                    description: false when the request succeeds.
                    example: false
                  response:
                    type: object
                    description: The updated record.
              example:
                code: api_access_disabled
                message: API access is no longer enabled for this account. Contact CSM.
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                error: true
                errors:
                  - error message
                  - error message
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                message: Unauthorized
        '404':
          description: Not Found
          content:
            application/json:
              example:
                message: Request URL or object not found
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                message: Internal Server Error
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

## Related topics

- [User Roles and Permissions Details](https://help.fieldpulse.com/settings/users-teams/user-roles.md)
- [How to Create Asset Reports](https://help.fieldpulse.com/reporting/raw-data/asset-reports.md)
- [Troubleshooting QuickBooks Online Sync Errors](https://help.fieldpulse.com/integrations/accounting/quickbooks-online/sync-errors.md)
- [How to Add New Users](https://help.fieldpulse.com/settings/users-teams/adding-users.md)
- [Users, Roles & Teams Overview](https://help.fieldpulse.com/settings/users-teams/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.