Create Location

Creates a saved location.

URLs

Environment Method URL
Sandbox https://api-sandbox.fndev.net/api/rest/v2/locations
Production https://api.fieldnation.com/api/rest/v2/locations

Path Parameters

Not applicable.

Query Parameters

Parameter Type Example Notes
access_token string abc123defg459hijk786lmn45 Required.

Body Parameters

Use this endpoint to create a new location. You can also include a location contact, location group, and location client. Refer to Add Location Attribute and Add Location Note for additional options.


{  
   "name": "New Saved Location",
   "display_name":"ABC Corp",
   "address1":"123 Main Street",
   "address2":"Building 4C",
   "city":"Phoenix",
   "state":"AZ",
   "zip":"85001",
   "country":"US",
   "type":1,
   "contact": {
       "name": "Office Manager",
       "email": "mgr@mail.com",
       "phone": "4805551234",
       "phone_ext": ""
    },
    "group":"AZ Locations",
    "client":188
}

Response

Returns the new saved location id.


{
    “id”: 16326
}

Errors

Standard HTTP and OAuth error codes.