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
[{"name"=>"first_name", "value"=>"Gil", "datatype"=>"string"}, {"name"=>"last_name", "value"=>"Feig", "datatype"=>"string"}, {"name"=>"email", "value"=>"hello@merge.dev", "datatype"=>"string"}, {"name"=>"phone", "value"=>"+13785579223", "datatype"=>"string"}, {"name"=>"state", "value"=>"NY", "datatype"=>"string"}, {"name"=>"country", "value"=>"MF", "datatype"=>"string"}, {"name"=>"postal_code", "value"=>"irure officia dolore", "datatype"=>"string"}, {"name"=>"integration_params", "value"=>"[object Object]", "datatype"=>"string"}, {"name"=>"linked_account_params", "value"=>"[object Object]", "datatype"=>"string"}]
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":"nostrud dolor in "}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"quis voluptate non"}}],"model":{"first_name":"Gil","last_name":"Feig","email":"hello@merge.dev","phone":"+13785579223","state":"NY","country":"KY","postal_code":"eiusmod est exercitation do et","remote_created_at":"2022-12-23T00:00:00Z","remote_updated_at":"2022-12-23T00:00:00Z","id":"urn:uuid:09cf373a-141a-343b-a6f0-fcb2bd16663e","remote_id":"35"},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"qui sunt"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"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/"}}]}