Attachment

Attachment/Attachmentsorder/PUT

Updates the resource identified by the following URL.This method changes the order of picture attachments (meta data) to a real estate object.

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

 

Please note:

  • If you re-order your attachments the first picture ID will be automatically the title-picture!
  • You have to send the attachment id of pictures AND PDF documents, but only pictures are effected of this change request.

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 of the username.
  • realestateid: the unique scout object ID

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:{
    "@xmlns":{
            "attachmentsorder": "http://rest.immobilienscout24.de/schema/attachmentsorder/1.0"
    },
    "attachmentId":["715176142","715095854","715095825","715095848","715095858"]
   }
}

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

No special headers.

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>
</source>

 

JSON
{

attachmentsorder.attachmentsorder:{
    "@xmlns":{
            "attachmentsorder": "http://rest.immobilienscout24.de/schema/attachmentsorder/1.0"
    },
    "attachmentId":["715176142","715095854","715095825","715095848","715095858"]
   }
}