Attachment

Attachment/Attachmentsorder/GET

This method hands out the order of the pictures by real estate object id.

https://rest.immobilienscout24.de/restapi/api/offer/v1.0/user/{username}/realestate/{id}/attachment/attachmentsorder

 

Example: GET https://rest.immobilienscout24.de/restapi/api/offer/v1.0/user/999999/realestate/58850320/attachment/attachmentsorder hands out the order of the pictures and PDFs for the real estate object 58850320.

Tutorial for changing attachmentsorder without saving the ImmobilienScout24-attachment-IDs in your client

  • GETALL ATTACHMENTS using your realestate-id: https://rest.immobilienscout24.de/restapi/api/offer/v1.0/user/{username}/realestate/ext-{id}/attachment
  • The response is in the actual order (IST) and contains the immobilienscout24 attachment ids AND the attachment ids of your system
  • Check order (IST) with your local order (SOLL) by your attachment ids
  • Use PUT ATTACHMENTSORDER in order to transmit your order (SOLL). This only works with the immobilienscout24 attachment ids, which you got from GET ATTACHMENT.

Supported media types

  • XML (Accept: application/xml)
  • JSON (Accept: application/json)

Authorization requirements

A System Key and an authenticated user are required for this operation:

 

Please use a secure connection (https) for this operation.

Request

Path Parameters

  • Username. "me" can be used instead.
  • realestateid: the unique real estate object id, which is generated, automatically

Query Parameters

none

Response

The following section includes the HTTP status code, a short description and examples for the response body content of a successful processed request.
Error responses as well as other simple message responses are described in detail within the common message responses.

 

Status 200 OK

The requested operation was successful.

Header

none

Body

XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<attachmentsorder:attachmentsorder xmlns:attachmentsorder="http://rest.immobilienscout24.de/schema/attachmentsorder/1.0">
    <attachmentId>715193272</attachmentId>
    <attachmentId>715193262</attachmentId>
</attachmentsorder:attachmentsorder>

 

JSON


{"attachmentsorder.attachmentsorder":
     {"attachmentId":["715193272","715193262"]}
}