DSN-ATLAS
Delete document
Soft-delete one patient attachment after checking ownership and verify its absence.
POSThttps://api.ontross.com/api/integrations/dsn-atlas/delete-document
Request Fields
input.patient_id
integer
requiredNumeric record identifier obtained from a scheduled appointment.
Example
1input.attachment_id
integer
requiredAttachment ID from fetch-patient-documents or upload-document to soft-delete from this patient's record.
Example
1auth_id
string
requiredSaved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"Output Fields
attachment_id
integer
Attachment identifier removed from the patient's active document list.
Example
936284patient_id
integer
Patient identifier whose attachment ownership was checked before deletion.
Example
784231deleted
boolean
True only after the attachment is absent from a fresh patient document list; Atlas retains its normal deleted-record history.
Example
trueCode
curl --request POST \
--url https://api.ontross.com/api/integrations/dsn-atlas/delete-document \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"patient_id":1,"attachment_id":1},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"patient_id": 1,
"attachment_id": 1
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"attachment_id": 936284,
"patient_id": 784231,
"deleted": true
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}