Skip to content

Create Exposures

POST
/v3/ingest/exposures/
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" } ]'
Media type application/json
Payload
Array<object>
ExposureIngestSchema
object
pack_years_smoked
Any of:
number
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
Allowed values: Current reformed smoker for <= 15 years Current reformed smoker for > 15 years Current reformed smoker, duration not specified Current smoker Lifelong non-smoker (<100 cigarettes smoked in lifetime) Not applicable Not available
tobacco_type
Any of:
Array<string>
Allowed values: Chewing Tobacco Cigar Cigarettes Electronic cigarettes Not applicable Pipe Roll-ups Snuff Not available Waterpipe
uuid
Any of:
string

OK