contacts create
POST {{baseUrl}}/contacts
Creates a Contact
object with the given values.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
is_debug_mode | boolean | Whether to include debug fields (such as log file links) in the response. | |
run_async | boolean | Whether or not third-party updates should be run asynchronously. |
Request Body
{"model"=>{"name"=>"Gil Feig's Pickleball Team", "is_supplier"=>true, "is_customer"=>false, "email_address"=>"pickleball@merge.dev", "tax_number"=>"12-3456789", "status"=>"ACTIVE", "currency"=>"USD", "company"=>"595c8f97-2ac4-45b7-b000-41bdf43240b5", "addresses"=>[{"type"=>"SHIPPING", "street_1"=>"2920 Broadway", "street_2"=>"2nd Floor", "city"=>"New York", "state"=>"NY", "country_subdivision"=>"NY", "country"=>"US", "zip_code"=>"10027"}], "phone_numbers"=>[{"number"=>"+3198675309", "type"=>"Mobile"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Account-Token | string | (Required) Token identifying the end user. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"errors":[{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"sit"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"est ipsum"}}],"model":{"id":"c640b80b-fac9-409f-aa19-1f9221aec445","remote_id":"11167","remote_data":[{"path":"amet fugiat","data":{"elit_817":{},"sit8__":{}}},{"path":"enim Excepteur culpa","data":{"laboris6dc":{},"non4_a":{}}}],"name":"Gil Feig's Pickleball Team","is_supplier":false,"is_customer":true,"email_address":"pickleball@merge.dev","tax_number":"12-3456789","status":"ARCHIVED","currency":"USD","remote_updated_at":"2020-03-31T00:00:00Z","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","addresses":["2f2702aa-8948-492b-a412-2acdf6d2c499","d98c7428-8dda-48a8-a1da-c570f65e2375"],"phone_numbers":[{"number":"+3198675309","type":"Mobile"}],"remote_was_deleted":false},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"laborum sit pariatur"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"id anim in"}}],"logs":[{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}},{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}}]}