Attachment

Attachment/DELETEbyID

This method hands out the attachment by attachment ID.

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

 

  • DELETE is idempotent.Example: DELETE https://rest.immobilienscout24.de/restapi/api/offer/v1.0/user/{username}/realestate/58850320/attachment/{123456}: deletes the attachment with the ID=123456.

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
  • realestate id: the unique real estate object id, which is generated, automatically.
  • attachment id: the attachment-id, which you've got from POST ATTACHMENT.

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

<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
{
   "common.messages":[
      {
         "message":{
            "messageCode":"MESSAGE_RESOURCE_DELETED",
            "message":"Resource [attachment] with id [123456] has been deleted.",

            "id":123456
         }
      }
   ]
}