Files
Create a File
Permissions needed: ACCESS_PATIENTS Upload a new file and attach it to a pet
post/api/v1/files
Response
successful operation
Example response
{
"data": {
"id": 1,
"pet_id": 1,
"clinic_id": 766,
"name": "image.jpg",
"name_without_extension": "image",
"extension": "jpg",
"thumbnail": "https://vet.digitail.io/images/files/jpg.svg",
"updated_at": "2021-10-05T12:52:53.000000Z",
"download_url": "https://vet.digitail.io/api/v1/files/1/download",
"preview_url": "https://vet.digitail.io/api/v1/files/1/preview"
}
}