Create uploaded patient attachment
Changed onTo create a patient attachment, you must first generate a presigned URL, upload your file to that URL, and then supply that URL and response key in the upload_url request body parameter.
Request
- Base URLhttps://api.au1.cliniko.com/v1
- URLhttps://api.au1.cliniko.com/v1/patient_attachments
- AuthHTTP basic
Request body
Example request
{
"patient_id": "1",
"upload_url": "https://cliniko-files-example-bucket.s3.amazonaws.com/123/patients/456/attachments/temp/s0m3-w31rd-l0c4t10n-1na-t3mpd1r/the-name-of-the-file.txt"
}Response
Resource was created
Example response
{
"content": {
"links": {
"self": "https://api.au1.cliniko.com/v1/patient_attachments/1"
}
},
"links": {
"self": "https://api.au1.cliniko.com/v1/patient_attachments/1"
},
"patient": {
"links": {
"self": "https://api.au1.cliniko.com/v1/patients/1"
}
},
"user": {
"links": {
"self": "https://api.au1.cliniko.com/v1/users/1"
}
}
}Changes
- warning
added the new
documentenum value to theresponse property for the response status - warning
added the new
imageenum value to theresponse property for the response status - warning
added the new
videoenum value to theresponse property for the response status - info
removed the
documentsenum value from theresponse property for the response status - info
removed the
imagesenum value from theresponse property for the response status - info
removed the
videosenum value from theresponse property for the response status
- warning
- info
added the optional property
to the response with the status
- info