templates create
POST {{baseUrl}}/templates
Creates a Template
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"=>"name", "value"=>"Welcome Email Template", "datatype"=>"string"}, {"name"=>"type", "value"=>"EMAIL", "datatype"=>"string"}, {"name"=>"contents", "value"=>"Welcome onboard! Stay connected and find out more.", "datatype"=>"string"}, {"name"=>"owner", "value"=>"ceae4388-531d-3e00-d2a1-5aeee664b60f", "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":"sint incididunt aliqua"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"dolor incididunt ut dolor"}}],"model":{"name":"Welcome Email Template","type":"MESSAGE","contents":"Welcome onboard! Stay connected and find out more.","owner":"12b1b8cd-b74c-bcfa-fbc4-049e46c84883","remote_created_at":"2022-12-23T00:00:00Z","remote_updated_at":"2022-12-23T00:00:00Z","id":"urn:uuid:117c3829-0344-97e9-031f-67d02e9b25d1","remote_id":"40"},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"labore occa"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"consequat c"}}],"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/"}}]}