Create uploaded patient attachment
To 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 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
Changed in 2 of the 7 revisions of this API.34
- ●
added the new
documentenum value to thecategoryresponse property for the response status201response-property-enum-value-added
- ●
added the new
imageenum value to thecategoryresponse property for the response status201response-property-enum-value-added
- ●
added the new
videoenum value to thecategoryresponse property for the response status201response-property-enum-value-added
- ○
removed the
documentsenum value from thecategoryresponse property for the response status201response-property-enum-value-removed
- ○
removed the
imagesenum value from thecategoryresponse property for the response status201response-property-enum-value-removed
- ○
removed the
videosenum value from thecategoryresponse property for the response status201response-property-enum-value-removed
- ●
- ○
added the optional property
categoryto the response with the201statusresponse-optional-property-added
- ○