Question:
- Error: "first or last name must be supplied"
- Error: "An invalid argument was supplied: Invalid attributes present for a Person: name"
Environment:
- Clio Manage
- Clio API
Additional Information:
- API Documentation on the Contact Endpoint
Answer:
Clio's Contact Endpoint offers an Automatic and Manual way to set a Contact's first, middle, and last names.
Automatic
When the 'name' field is present, Clio will attempt to determine the first, middle, and last names automatically based on the spaces in the value provided to the 'name' field.
- If the 'name' field has the values of "John Smith". Then 'first_name' is "John" and 'last_name' is "Smith"
- If the 'name' field has the values of "John Robert Smith". Then 'first_name' is "John", 'middle_name' is "Robert", and last_name is "Smith"
Note: If the value of 'name' contains more than 3 words, "John Robert Andrews Smith", than Clio will be unable to identify the first, middle, and last names and will return "first or last name must be supplied".
Manual
You can manually set the name fields by filling out the fields 'first_name', 'middle_name', and/or 'last_name' yourself.
Note: If any of those three fields have values you must exclude the 'name' field else Clio will return the error "An invalid argument was supplied: Invalid attributes present for a Person: name".