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
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:
| <?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
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"]
}
}
|