PUT /users
{
"account": 111, // integer, move user to Account with id=111
"location": 11, // integer, set Primary Location with id=11, set 0 to clear Primary location
}-Chris
Deanna Aaron - 1023898
{
"id": 1023898,
"email": {REMOVED},
"firstname": "Deanna",
"lastname": "Aaron",
"FullName": "Deanna, Aaron",
"type": "user",
"fb_staff_id": 0,
"qb_employee_id": 0,
"qb_vendor_id": 0,
"account_id": 16675,
"account_name": "Wylie ISD",
"location_id": 167949,
"location_name": "Educational Svc Ctr",
"xero_contact_id": null,
"opencount": null,
"closedcount": null,
"holdcount": 0
}
Sabah Aarbi - 1016204
{
"id": 1016204,
"email": "{REMOVE}",
"firstname": "Sabah",
"lastname": "Aarbi",
"FullName": "Sabah, Aarbi",
"type": "user",
"fb_staff_id": 0,
"qb_employee_id": 0,
"qb_vendor_id": 0,
"account_id": 16675,
"account_name": "Wylie ISD",
"location_id": 167939,
"location_name": "Achieve Academy",
"xero_contact_id": null,
"opencount": null,
"closedcount": null,
"holdcount": 0
}
Locations
-----------------
[
{
"id": 167939,
"name": "Achieve Academy",
"description": null,
"type": "Building",
"is_default": false,
"is_lastchild": false,
"parent_id": 0,
"sub": null,
"type_id": 0,
"account_id": 0,
"auditor_id": 0,
"last_auditor_name": null,
"tickets_count": 0,
"last_audit_date": null,
"updated_date": null,
"is_audit_completed": false,
"audit_days": 0,
"is_active": true
},
{
"id": 167940,
"name": "Akin Elementary",
"description": null,
"type": "Building",
"is_default": false,
"is_lastchild": false,
"parent_id": 0,
"sub": null,
"type_id": 0,
"account_id": 0,
"auditor_id": 0,
"last_auditor_name": null,
"tickets_count": 0,
"last_audit_date": null,
"updated_date": null,
"is_audit_completed": false,
"audit_days": 0,
"is_active": true
},
{
"id": 167944,
"name": "Cooper Junior High",
"description": null,
"type": "Building",
"is_default": false,
"is_lastchild": false,
"parent_id": 0,
"sub": null,
"type_id": 0,
"account_id": 0,
"auditor_id": 0,
"last_auditor_name": null,
"tickets_count": 0,
"last_audit_date": null,
"updated_date": null,
"is_audit_completed": false,
"audit_days": 0,
"is_active": true
},
{
"id": 167949,
"name": "Educational Svc Ctr",
"description": null,
"type": "Building",
"is_default": false,
"is_lastchild": false,
"parent_id": 0,
"sub": null,
"type_id": 0,
"account_id": 0,
"auditor_id": 0,
"last_auditor_name": null,
"tickets_count": 0,
"last_audit_date": null,
"updated_date": null,
"is_audit_completed": false,
"audit_days": 0,
"is_active": true
},
Have you made any progress on this?
_Chris
Still looking for an update on this. It appears it is still not supported. If you manually set a location via the web interface then you can change the location via an API PUT call. However if no location is set for the user you get a "Procedure or function 'sp_UpdateLogin' expects parameter '@user_title', which was not supplied." error message.
-Chris
The API call gives no errors now. However, the location for the user is not updated. If you issue a get for the same user after the put, the data does not change.
Chris Lamb
CIO | Wylie Independent School District
951 South Ballard Avenue | Wylie, Texas 75098
P: 972-429-3010 | F: 972-941-6010
chris...@wylieisd.net