Contacts
Contacts#index
Retrieves all firm contacts
parameter
values
type
'Person' or 'Institution'
filter
'all'
Response:
Returns a 200 OK with an array of contacts:
Contacts#show
Returns a single contact
Response:
Returns a 200 OK with a single contact:
Contacts#create
Creates a new contact. Keep in mind to send contact data inside a contact root key.
You should pass a JSON with the following parameters:
first_name string
middle_name string
last_name string
email string
type 'Person' or 'Institution'
lead boolean
addresses_attributes array
data object
street_number_and_name string
apartment_number string
city string
state string
province string
zip_code string
physical boolean
mailing boolean
phone_numbers_attributes
data
number string
daytime boolean
Response:
Returns a 201 created.
Contacts#update
Updates an existing contact.
You should pass a JSON with the following parameters:
first_name string
middle_name string
last_name string
company_name string
type 'Person' or 'Institution'
email string
lead boolean
addresses_attributes array
data object
id integer
street_number_and_name string
apartment_number string
city string
state string
province string
zip_code string
physical boolean
phone_numbers_attributes
data
id integer
number string
daytime boolean
Response:
Returns 200 OK
Contacts#destroy
Destroys an existing contact
Response:
Returns 200 OK
Last updated