Create Exposures
POST
/v3/ingest/exposures/
const url = 'https://example.com/v3/ingest/exposures/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"pack_years_smoked":1,"pack_years_smoked_not_available":false,"program_id":"example","submitter_donor_id":"example","tobacco_smoking_status":"Current reformed smoker for <= 15 years","tobacco_type":["Chewing Tobacco"],"uuid":"example"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v3/ingest/exposures/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ { "pack_years_smoked": 1, "pack_years_smoked_not_available": false, "program_id": "example", "submitter_donor_id": "example", "tobacco_smoking_status": "Current reformed smoker for <= 15 years", "tobacco_type": [ "Chewing Tobacco" ], "uuid": "example" } ]'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
Payload
Array<object>
ExposureIngestSchemaobject
pack_years_smoked_not_available
Pack Years Smoked Not Available
boolean
program_id
required
Program Id
string
submitter_donor_id
required
Submitter Donor Id
string
tobacco_smoking_status
Any of:
SmokingStatusEnum
string
null
tobacco_type
Any of:
Array<string>
null
Responses
Section titled “ Responses ”OK