Patient Attachment

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.

post/patient_attachments

Request body

patient_idstring int64

patient id

descriptionstring nullable
upload_urlstring uri

Must be a presigned URL returned by the presigned URL upload process

filenamestring nullable

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

archived_atstring date-time nullable
category'audio' | 'data' | 'document' | 'image' | 'other' | 'video' nullable
content_typestring nullable
created_atstring date-time
descriptionstring nullable
filenamestring nullable
idstring int64
pinned_atstring date-time nullable
processed_atstring date-time nullable
processing_completedboolean nullable
sizestring int64 nullable
updated_atstring date-time

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

  • 9c509c169ad833See the full diff
    • added the new document enum value to the category response property for the response status 201

      response-property-enum-value-added

    • added the new image enum value to the category response property for the response status 201

      response-property-enum-value-added

    • added the new video enum value to the category response property for the response status 201

      response-property-enum-value-added

    • removed the documents enum value from the category response property for the response status 201

      response-property-enum-value-removed

    • removed the images enum value from the category response property for the response status 201

      response-property-enum-value-removed

    • removed the videos enum value from the category response property for the response status 201

      response-property-enum-value-removed

    • added the optional property category to the response with the 201 status

      response-optional-property-added