API Documentation - Clients

Table of Contents

Clients

Client data must be nested under the client key in the json body.

PUT /api/v2/clients/<client_id>

Edit a limited number of fields on a specified company client.

Accepted PUT Parameters

POST /api/v2/clients

Create a client record in Nestio. Note that in order for Nestio to properly ingest clients and associate them with teams and properties, the following fields are required: first_name, last_name, email, group.

Accepted POST Parameters

NOTE: You should only pass one of three community/building/unit, otherwise you will get a validation error.

Example request body:

{
	"client": {
                "people": [{
                		"first_name": "John",
                		"last_name": "Doe",
                		"email": "johndoe@example.com",
                		"phone_1": "5101234567",
                		"phone_2": "",
                		"is_primary": true
                	},
                	{
                		"first_name": "Jane",
                		"last_name": "Doe",
                		"email": "janedoe@example.com",
                		"phone_1": "",
                		"phone_2": "",
                		"is_primary": false
                	}
                ],
                "move_in_date": "1970-01-01",
                "layout": ["studio", "1br"],
                "price_floor": 1500,
                "price_ceiling": 2500,
                "notes": "looking for affordable neighborhood with bars and restaurants",
                "group": 12,
                "broker_company": "Jerry Company",
                "broker_email": "jerry@seinfeld.com",
                "broker_first_name": "Jerry",
                "broker_last_name": "Seinfeld",
                "broker_phone": "4101230987",
                "client_referral": "Company Website",
                "campaign_info": "3384123",
                "unit": 5309,
                "device": "phone",
                "source_type": "organic"
    }
}