POST Profile/locations/
Add a location to your profile. Returns the created profile locations ID
Request Parameters
Parameter | Description | |
---|---|---|
name * (string) |
|
|
address_1 * (string) |
|
|
address_2 (string) |
|
|
city (string) |
|
|
state (string) |
|
|
zip (string) |
|
|
country (string) |
|
|
lon (decimal) |
|
|
lat (decimal) |
|
|
more_info (string) |
|
|
opening (string) |
|
|
on_map (1 or 0) |
Should this location be shown on the map |
|
on_side_column (1 or 0) |
Should this location be listed on the profile page |
|
on_review_form (1 or 0) |
Should this location be reviewable on the review form |
Response
Parameter | Description | |
---|---|---|
location_id (int) |
The location Id for this location |
*on success |
status (string) |
Was this a successful request? |
OK or error |
error (array) |
A list of errors |
*on error |
Example JSON response:
On Success: { "location_id": 434, "status": "OK" } On Error: { "status": "error", "error": [ { "field": "name", "msg": "empty" } ] }