Delete Map Attachments by KHUB ID - Fluid Topics - 3.6

Use Fluid Topics Web API

Product
Fluid Topics
FT_Version
3.6
Category
Technical Notes
language
English

The following lines show how to remove a map attachment using its KHUB ID:

Method

Endpoint

DELETE

/api/admin/khub/maps/attachments?metadata1=value1&...&metadataN=valueN

Where metadata=value is any metadata key-value couple defining the publications to delete.

Input Example

{
"mode": "khubId",
"attachments": [
"v2bkAcAkzrwKskNkD6~5qQ"
]
}

Where:

  • mode is the deletion mode of the map attachment
  • attachments is the list of map attachments' KHUB IDs to be deleted

The KHUB Id can be retrieved when listing the map attachments in the viewerUrl property.

The line below shows an example of KHUB ID:

"viewerUrl": "/viewer/book-attachment/BQY_7Z2TIhtgycrlZj52Kw/v2bkAcAkzrwKskNkD6~5qQ"

Where:

v2bkAcAkzrwKskNkD6~5qQ is the KHUB ID of the attachment.

Return codes

Return Code

Description

202 ACCEPTED

The update instruction was sent to the Fluid Topics processing pipeline.

400 BAD REQUEST

Invalid query.

500 INTERNAL SERVER ERROR

The Fluid Topics Server failed to respond.

A map attachment can be removed both by id and khub id from all publications in the portal, by using the ft:isPublication metadata:

/api/admin/khub/maps/attachments?ft:isPublication=true