requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url
Hi,
When trying to create new samples via the API I get an 500 Server error. I checked the logs and it is mentioning this:
Sending execption ERROR - ActionController::ParameterMissing (param is missing or the value is empty: sample Did you mean? sample
My payload looks like this:
"data": { "type": "samples", "attributes": { "title": "Test", "species": "nematode_extract", "species_code": "27", "experiment": "First test", "experiment_code": "1", "extraction_date": "150428", "extraction_date_code": "150428", "pool": "environmental", "pool_code": "0", "individual": "Nem_4A-20", "sample_code": "1", "library_type": "amplicon_sequencing_nematoda", "library_type_code": "49", "replicate": "1", "replicate_code": "1", "run_and_lane": "2015-1", "flowcell_code": "M00707:59:000000000-AHD3U:1:", "run_code": "351", "unique_sample_code": "1123", "own_sample_name": "xaz-12", "P_U_Protocol_Lane": "049_0351" }, "relationships": { "sample_type": { "data": { "id": "1", "type": "sample_types" } }, "projects": { "data": [ { "id": "2", "type": "projects" } ] }, "creators": {}, "people": {}, "data_files": {}, "assays": {} } } }
Where is the mistake?