Skip to content

Update attachments order

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

PUT /offer/v1.0/user/{username}/realestate/{id}/attachment/attachmentsorder

Supported media types:
XML
JSON

Notes:

  • 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.

Request

XML:

1
2
3
4
5
<?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:

1
2
3
4
5
6
7
{attachmentsorder.attachmentsorder:{
    "@xmlns":{
            "attachmentsorder": "http://rest.immobilienscout24.de/schema/attachmentsorder/1.0"
    },
    "attachmentId":["715176142","715095854","715095825","715095848","715095858"]
   }
}

Response

XML:

1
2
3
4
5
6
<?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:

1
2
3
4
5
6
7
8
{
attachmentsorder.attachmentsorder:{
    "@xmlns":{
            "attachmentsorder": "http://rest.immobilienscout24.de/schema/attachmentsorder/1.0"
    },
    "attachmentId":["715176142","715095854","715095825","715095848","715095858"]
   }
}