curl --location 'https://api.medcloud.co/RestAPI/rest/insert-report' \
--header 'x-access-token: SUA_CHAVE_AQUI' \
--header 'Content-Type: application/json' \
--data '{ "accessionNumber": "IMPORT1541", "author": "Importação", "rawReport": "", "base64PDFReport": "", "release": "true", "patientId": "81", "patientName": "ANA PAULA DO AMARAL", "patientBirth": "03/05/1986", "studyDate": "23/07/2011", "modality": "OT", "studyDescription": "US Transvaginal com Preparo Intestinal", "patientEmail": "", "patientPhone": "", "referringPhysicianName": ""
}'
curl --location 'https://api.medcloud.co/RestAPI/rest/insert-report' \
--header 'x-access-token: SUA_CHAVE_AQUI' \
--header 'Content-Type: application/json' \
--data '{ "accessionNumber": "IMPORT1541", "author": "Importação", "rawReport": "", "base64PDFReport": "", "release": "true", "patientId": "81", "patientName": "ANA PAULA DO AMARAL", "patientBirth": "03/05/1986", "studyDate": "23/07/2011", "modality": "OT", "studyDescription": "US Transvaginal com Preparo Intestinal", "patientEmail": "", "patientPhone": "", "referringPhysicianName": ""
}'
{ "link": "https://example.co/route?id=h361f9337...1778172110", "viewerLink": "https://example.co/route/viewer/?id=h361f9337...1778172110", "reportLink": "https://example.co/route?id=h361f9337...1778172110&op=report", "uuid": "h361f9337-58d1-45cb-b633-8972dc7b10761778172110", "expiresAt": "2026-05-08T14:21:50Z"
}
{ "link": "https://example.co/route?id=h361f9337...1778172110", "viewerLink": "https://example.co/route/viewer/?id=h361f9337...1778172110", "reportLink": "https://example.co/route?id=h361f9337...1778172110&op=report", "uuid": "h361f9337-58d1-45cb-b633-8972dc7b10761778172110", "expiresAt": "2026-05-08T14:21:50Z"
}
{ "error": "Not Found", "message": "Exame com o accessionNumber informado não encontrado."
}
{ "error": "Not Found", "message": "Exame com o accessionNumber informado não encontrado."
}