Skip to content

Attachment For Dossier

POST /files/attachments/for_dossier

Get all the attchments linked to the specified dossier.

Request#

curl -X POST 'https://api.pricehubble.com/api/v1/files/attachments/for_dossier' \
  -H 'Authorization: Bearer 74126eab0a9048d993bda4b1b55ae074' \
  -H 'Content-Type: application/json' \
  -d '{
    "dossierId": "119a6ead-4ac4-4b4b-b264-195a2895618e",
    "countryCode": "CH"
    }'
Field Description Type Remarks
dossierId Dossier you want to get the attachments from string
countryCode ISO country code string

Response#

{
  "files": [
        {
            "uuid": "20e61562-6879-467e-8efc-518843973baa",
            "caption" : "Blueprint",
            "type" : "floorplan",
            "url": "url/to/attachment",
            "images": ["url/to/image1", "url/to/image2"]
        },
        {
            "uuid": "53c8f26a-b29g-463d-a1d7-e22e9427c0fa",
            "caption" : "Sale Strategy",
            "type" : "marketing",
            "url": "url/to/attachment",
            "images": ["url/to/image"]
        }
    ]}'
}
Field Description Type Remarks
files List of attachments Array of Attachments

Attachments#

Field Description Type Remarks
uuid Id of the attachment string
caption Caption of the attachment string
type Type of the attachment string One of floorplan, permit, marketing, valuation or other.
url Url of the uploaded file string The url is only valid for 30 minutes
images List of image urls array of string Each image url is only valid for 30 minutes. If the file is a PDF, each image represents a page. If the file is one of TIFF, HEIC or HEIF format then the array contains a single element which is the file converted into JPEG. Otherwise the array contains the original file.