UserLocation Resource
In Users Module
User/employee locations; uses contact_locations patterns for people locations.
Endpoints
| Endpoints |
URI |
Access Control |
Description |
| get |
GET /api/UserLocation/get |
Authentication only |
Constrain to companies that have had a link accepted by this user, or locations belonging to the user himself |
| find |
GET /api/UserLocation/find |
Authentication only |
|
| save |
POST /api/UserLocation/save |
Authentication only |
|
| save-batch |
POST /api/UserLocation/save-batch |
Admin or Module WRITE |
|
| delete |
POST /api/UserLocation/delete |
Authentication only |
|
Properties
| Property |
Type |
Description |
id |
number |
|
slug |
string |
|
contact_id |
number |
|
user_id |
number |
|
location_name |
string |
|
phone |
string |
|
email |
string |
|
suite |
string |
|
address |
string |
|
city |
string |
|
province |
string |
|
country |
string |
|
postal_code |
string |
|
lat |
number |
|
long |
number |
|
geocode_address_hash |
string |
|
parts_used_json |
string |
|
notes |
string |
|
Settings
| Setting |
|
Pagination Limit (when page parameter is set) |
None |
| Default Sort Order |
By insertion order
|
Relationships
| Related Resource |
Key |
Relationship to UserLocation |
Property |
| User |
user_id |
Owns Many |
User |