actions create
POST {{baseUrl}}/actions
Creates an Action
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"=>"emails", "value"=>"5eb52530-ee9d-1ee7-8cfb-2fb8240de539,urn:uuid:fd92dabd-5976-e30a-0a0f-2b51a04097a7", "datatype"=>"string"}, {"name"=>"messages", "value"=>"urn:uuid:b6bd5456-e1b2-6158-9825-075d28c3d645,urn:uuid:c725651f-c54e-5ef3-cf68-e1584109efc9", "datatype"=>"string"}, {"name"=>"name", "value"=>"Welcome Email", "datatype"=>"string"}, {"name"=>"type", "value"=>"EMAIL", "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"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"incididunt "}}],"model":{"emails":["24ab327d-7318-c0b4-31ed-6581400a5e68","urn:uuid:685913e9-9d65-d016-02bd-3cac06a723d0"],"messages":["urn:uuid:6d72fb2c-14f8-dd27-f30b-039c8436b0c1","urn:uuid:d0fb9c81-ca39-6181-4fad-f155c81e056e"],"name":"Welcome Email","type":"EMAIL","id":"52ce940b-ecfe-43a6-955f-629f799f7f73","remote_id":"1234"},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"deserunt"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"ea Excepteur dolor"}}],"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/"}}]}