Update an existing user's record. When updating a user you only need to specify the fields that you would like to change. All other fields will remain unchanged.
To update a user's phone number, you might send the following XML.
<user>
<phone>1 555 111 1111</phone>
</user>To remove a user's phone number, you might send the following XML.
<user>
<phone></phone>
</user>To update a user's mobile permissions and remove their web permissions, you might send the following XML.
<user>
<permissions>
<admin>none</admin>
<schedule>none</schedule>
<map>none</map>
<reports>none</reports>
<jobs>none</jobs>
<customers>none</customers>
<quotes>none</quotes>
<equipment>none</equipment>
<messaging>none</messaging>
<mobile>full</mobile>
<mobile_jobs_create>full</mobile_jobs_create>
<mobile_jobs_assign>full</mobile_jobs_assign>
<mobile_invoice>full</mobile_invoice>
</permissions>
</user>Security
apiKey
PUT
curl -i -X PUT \
'https://api.vworkapp.com/v5/users/{id}.xml?api_key=string&use_third_party_id='\''1'\''&api_key=YOUR_API_KEY_HERE' \
-H 'Accept-Encoding: gzip' \
-H 'Content-Type: application/xml; charset=utf-8' \
-d '<?xml version="1.0" encoding="utf-8"?>
<user>
<phone>1 555 111 2222</phone>
</user>'Response
<?xml version="1.0" encoding="utf-8"?>
<user>
<id readonly="readonly">66270</id>
<group_ids></group_ids>
<name>George Smith</name>
<email>george@example.com</email>
<phone>1 555 111 1111</phone>
<notes>Mack 3DC 12L V-TEC</notes>
<shift_on>true</shift_on>
<third_party_id></third_party_id>
<created_at readonly="readonly">2021-03-09T01:37:54+00:00</created_at>
<updated_at readonly="readonly">2021-03-09T01:37:54+00:00</updated_at>
<latest_telemetry></latest_telemetry>
<permissions>
<admin>none</admin>
<schedule>none</schedule>
<map>none</map>
<reports>none</reports>
<jobs>none</jobs>
<customers>none</customers>
<quotes>none</quotes>
<equipment>none</equipment>
<messaging>none</messaging>
<mobile>full</mobile>
<mobile_jobs_create>full</mobile_jobs_create>
<mobile_jobs_assign>full</mobile_jobs_assign>
<mobile_invoice>full</mobile_invoice>
…