contacts create
POST {{baseUrl}}/contacts
Creates a CRMContact
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"=>"remote_id", "value"=>"19202938", "datatype"=>"number"}, {"name"=>"first_name", "value"=>"Gil", "datatype"=>"string"}, {"name"=>"last_name", "value"=>"Feig", "datatype"=>"string"}, {"name"=>"account", "value"=>"0958cbc6-6040-430a-848e-aafacbadf4ae", "datatype"=>"string"}, {"name"=>"last_activity_at", "value"=>"2022-02-10T00:00:00Z", "datatype"=>"string"}, {"name"=>"remote_created_at", "value"=>"2021-11-10T00:00:00Z", "datatype"=>"string"}, {"name"=>"integration_params", "value"=>"{\"exercitationc\":{}}", "datatype"=>"string"}, {"name"=>"linked_account_params", "value"=>"{\"laborume4\":{},\"pariaturbfd\":{},\"aliquaad_\":{},\"in3\":{}}", "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":"culpa Duis"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"eu nisi"}}],"model":{"id":"urn:uuid:ae6a6c5b-76a3-a9e8-08c8-107be7ac3404","remote_id":"19202938","first_name":"Gil","last_name":"Feig","account":"0958cbc6-6040-430a-848e-aafacbadf4ae","addresses":[{"street_1":"50 Bowling Green Dr","street_2":"Golden Gate Park","city":"San Francisco","state":"CA","postal_code":"94122","country":"GY","address_type":"SHIPPING"},{"street_1":"50 Bowling Green Dr","street_2":"Golden Gate Park","city":"San Francisco","state":"CA","postal_code":"94122","country":"YE","address_type":"BILLING"}],"email_addresses":[{"email_address":"hello@merge.dev","email_address_type":"Work"}],"phone_numbers":[{"phone_number":"+13785579223","phone_number_type":"Mobile"}],"last_activity_at":"2022-02-10T00:00:00Z","remote_created_at":"2021-11-10T00:00:00Z"},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"culpa dolore velit laboris elit"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"aliq"}}],"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/"}}]}