Skip to content

Create a person #18

@lyrubiano5

Description

@lyrubiano5

I am having a trouble creating a person.

Acording to the documentation. I've tried the following request:

request.post (https://"my account".batchbook.com/api/v1/people.json?auth_token="MyApikey", json=my_json)

my_json={"person":{"prefix":"Mr.", "first_name":"Eric","middle_name":"M","last_name":"Krause",
"emails":[{"address":"[email protected]","label":"work","primary": true}],}

The person is created successfully, but the fields emails is empty. This is my response:

{'person': {'comments': [], 'addresses': [], 'about': None, 'created_at': '2017-10-26T17:33:18-04:00', 'emails': [], 'cf_records': [], 'last_name': 'Krause', 'prefix': 'Mr.', 'websites': [], 'updated_at': '2017-10-26T17:33:18-04:00', 'id': 24, 'middle_name': 'M', 'first_name': 'Eric', 'phones': [], 'company_affiliations': [], 'tags': [], 'champion': False}}

I get the same result with the fields "phones" and "addresses"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions