accounts create
POST {{baseUrl}}/accounts
Creates a CRMAccount
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"=>"owner", "value"=>"0258cbc6-6020-430a-848e-aafacbadf4ae", "datatype"=>"string"}, {"name"=>"name", "value"=>"Merge API", "datatype"=>"string"}, {"name"=>"description", "value"=>"One API for all integrations", "datatype"=>"string"}, {"name"=>"industry", "value"=>"API's", "datatype"=>"string"}, {"name"=>"website", "value"=>"https://merge.dev/", "datatype"=>"string"}, {"name"=>"number_of_employees", "value"=>"276000", "datatype"=>"number"}, {"name"=>"last_activity_at", "value"=>"2022-02-10T00:00:00Z", "datatype"=>"string"}, {"name"=>"remote_updated_at", "value"=>"2022-01-09T00:00:00Z", "datatype"=>"string"}, {"name"=>"remote_created_at", "value"=>"2021-11-10T00:00:00Z", "datatype"=>"string"}, {"name"=>"integration_params", "value"=>"{\"nostrud_2_\":{}}", "datatype"=>"string"}, {"name"=>"linked_account_params", "value"=>"{\"eafca\":{},\"voluptate_8b\":{},\"sit_f7\":{},\"deserunt_b1\":{}}", "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":"irure consectetur"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"et"}}],"model":{"id":"0958cbc6-6040-430a-848e-aafacbadf4ae","remote_id":"19202938","owner":"0258cbc6-6020-430a-848e-aafacbadf4ae","name":"Merge API","description":"One API for all integrations","industry":"API's","website":"https://merge.dev/","number_of_employees":276000,"addresses":[{"street_1":"50 Bowling Green Dr","street_2":"Golden Gate Park","city":"San Francisco","state":"CA","postal_code":"94122","country":"TG","address_type":"BILLING"},{"street_1":"50 Bowling Green Dr","street_2":"Golden Gate Park","city":"San Francisco","state":"CA","postal_code":"94122","country":"TD","address_type":"BILLING"}],"phone_numbers":[{"phone_number":"+16788879833","phone_number_type":"Mobile"}],"last_activity_at":"2022-02-10T00:00:00Z","remote_updated_at":"2022-01-09T00: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":"Ut esse"}},{"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/"}}]}