Skip to content

Attachment Edit

PUT files/attachments

Updates the dossier attachments specified in the request path by replacing the attachments with the ones provided. Any attachments previously linked to the dossier but not specified in the next request will be deleted.

Request#

curl -X PUT 'https://api.pricehubble.com/api/v1/files/attachments' \
  -H 'Authorization: Bearer 74126eab0a9048d993bda4b1b55ae074' \
  -H 'Content-Type: application/json' \
  -d '{
    "dossierId": "119a6ead-4ac4-4b4b-b264-195a2895618e",
    "countryCode": "CH",
    "files": [
        {
            "uuid": "20e61562-6879-467e-8efc-518843973baa",
            "caption" : "Blueprint",
            "type" : "floorplan"
        },
        {
            "uuid": "53c8f26a-b29g-463d-a1d7-e22e9427c0fa",
            "caption" : "Sale Strategy",
            "type" : "marketing"
        }
    ]}'
Field Description Type Remarks
dossierId Dossier you are modifying string
files List of attachments Array of Attachment Attachments not previously linked to the dossier will be added to the dossier, existing attachments will be edited. If any previously added attachment is not present, it will be deleted from the dossier
countryCode ISO country code string

Attachment#

Field Description Type Remarks
uuid Id of the attachment string
caption Caption of the attachment string
type Type of the attachment string Must be one of floorplan, permit, marketing, valuation or other. Default value: other. It is used to categorize the attachments.

Response#

{
  "dossierId": "119a6ead-4ac4-4b4b-b264-195a2895618e",
}
Field Description Type Remarks
dossierId The dossier that has been updated string