Detach Previously Attached Document from a Map - Fluid Topics - 3.2

Manage Map Attachments in Fluid Topics

Product
Fluid Topics
FT_Version
3.2
Category
Technical Notes
language
English
audience
public

To detach an attached document from a specified map:

Get the mapping.json file by reaching the following address:

http://$YOUR_FLUID_TOPICS_PORTAL.COM/api/khub/maps/attachments

This web service only works for logged-in users with the KHUB_ADMIN role.

You should get the following lines:

[
{
"map": "hashed URI of map 1",
"helper": {
"title": "Title of map 1",
"metas": [ ]
},
"files": [
{
"name": "Display name for related document 1",
"file": "document_1.pdf"
},
{
"name": "Display name for related document 2",
"file": "document_2.avi"
"description": "Short description for related document 2"
}
]
},
...
]

Where the "files" object contains the documents attached to the map 1.

In the mapping.json file, add "status": "deleted" to the "files" object for each document to detach in each map impacted. In the following example, the document_1.pdf file will be detached from the "map 1":

[
{
"map": "hashed URI of map 1",
"helper": {
"title": "Title of map 1",
"metas": [ ]
},
"files": [
{
"name": "Display name for related document 1",
"file": "document_1.pdf",
"status": "deleted"
}
]
},
...

Keep only the maps impacted by the map attachments to detach in the mapping.json file. Remove the other map attachments if there were any for these maps.

Make an archive with the mapping.json file.

Upload the archive through the Map Attachments processing pipeline, from the Back Office, as INCREMENTAL.

Ensure that the selected upload method is INCREMENTAL, or the specified file will not be detached from the map.