Skip to content

Remove Attachment of Real Estate project

This method removes an attachment from a real estate project

DELETE /offer/v1.0/user/{username}/realestateproject/{realestateprojectid}/attachment/{attachmentId}

Supported media types:
XML
JSON

Request

Path Parameters

PARAMETER DESCRIPTION
username the username which the user uses for logging in to www.immobilienscout24.de

"me" can be used instead of the username, when the user is logged in by 3-legged OAuth 1.0
realestateprojectid the unique project ID, generated by IS24 when posting a real estate project
attachmentId the ID of the attachment, generated by IS24 when assigning link to real estate project or requesting upload ticket for picture and pdf document

Successful response

HTTP Code: 200

XML:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<common:messages
    xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0"
    xmlns:gis="http://rest.immobilienscout24.de/schema/platform/gis/1.0">
    <message>
        <messageCode>MESSAGE_RESOURCE_DELETED</messageCode>
        <message>Resource [attachment] with id [a9fd1847-ae82-4a29-a1a5-49a145ea2340] has been deleted.</message>
        <id>a9fd1847-ae82-4a29-a1a5-49a145ea2340</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 [a9fd1847-ae82-4a29-a1a5-49a145ea2340] has been deleted.",
                "id": "a9fd1847-ae82-4a29-a1a5-49a145ea2340"
            }
        }
    ]
}

Unsuccessful responses

Files not uploaded prior assignment

HTTP Code: 404

XML:

1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<common:messages
    xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0"
    xmlns:gis="http://rest.immobilienscout24.de/schema/platform/gis/1.0">
    <message>
        <messageCode>ERROR_RESOURCE_NOT_FOUND</messageCode>
        <message>Resource [attachment] with id [2e2a7dd7-f746-4087-ac76-8dbf959d5c78] was not found.</message>
    </message>
</common:messages>

JSON:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "common.messages": [
        {
            "message": {
                "messageCode": "ERROR_RESOURCE_NOT_FOUND",
                "message": "Resource [attachment] with id [2e2a7dd7-f746-4087-ac76-8dbf959d5c78] was not found."
            }
        }
    ]
}