files create
POST {{baseUrl}}/files
Creates a File
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"=>"omg_common_model_scope.docx", "datatype"=>"string"}, {"name"=>"file_url", "value"=>"https://drive.com/1234", "datatype"=>"string"}, {"name"=>"size", "value"=>"254", "datatype"=>"number"}, {"name"=>"mime_type", "value"=>".docx", "datatype"=>"string"}, {"name"=>"description", "value"=>"This file is OP", "datatype"=>"string"}, {"name"=>"folder", "value"=>"urn:uuid:538dbe98-a294-d3d5-d96f-2fe7b63bcff1", "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":"est exercitation id Lorem"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"in ipsum"}}],"model":{"id":"52f7e8ae-4da7-922c-5d9a-043cc6400f80","remote_id":"12","name":"omg_common_model_scope.docx","file_url":"https://drive.com/1234","size":254,"mime_type":".docx","description":"This file is OP","folder":"urn:uuid:bfee56e0-d3ec-e234-013b-800ae5443ec6","remote_created_at":"1992-06-03T19:08:23.127Z","remote_updated_at":"1943-04-03T19:55:44.553Z","field_mappings":{"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},"remote_data":[{"in_6":{},"ex1":{},"do1":{}},{"nostrudf_":{},"occaecat_5e6":{}}]},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"tempor sit"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"laborum"}}],"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/"}}]}