Skip to content

Delete an attachment

This method hands out the attachment by attachment ID.

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

Supported media types:
XML
JSON

Request

Path Parameters

PARAMETER DESCRIPTION
Username the username which the user uses for logging in to www.immobilienscout24
me "me" can be used instead of the username, when the user is logged in by 3-legged oauth
Realestateid the real estate object id, which is generated, automatically
attachmentid the attachment-id, which you've got from POST ATTACHMENT

Example

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

deletes the attachment with the ID=123456.

Response

XML:

1
2
3
4
5
6
7
8
9
<common:messages
    xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0"
    xmlns:xlink="http://www.w3.org/1999/xlink">
    <message>
        <messageCode>MESSAGE_RESOURCE_DELETED</messageCode>
        <message>Resource [attachment] with id [123456] has been deleted.</message>
        <id>123456</id>
    </message>
</common:messages>

JSON:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
   "common.messages":[
      {
         "message":{
            "messageCode":"MESSAGE_RESOURCE_DELETED",
            "message":"Resource [attachment] with id [123456] has been deleted.",
            "id":123456
         }
      }
   ]
}