This web service lists the attachments attached to a map, and provides information about each attachment.
| Method | Endpoint |
|---|---|
GET |
|
| Path parameter | Type | Description |
|---|---|---|
{mapId} |
String | Expects the id of the targeted map. |
It is necessary to provide an Ft-Calling-App value when using Fluid Topics web services. See Fluid Topics calling app.
This web service requires authentication on portals with mandatory authentication.
Response body
The following lines show an example of a JSON response body with three attachments:
[
{
"id": "i0PPXvOmYE4jy~39ptx~lZ",
"name": "Qoala Team's Mascot",
"file": "QoalaTeamsMascot.jpg",
"mimeType": "image/jpeg",
"externalLink": false,
"viewerUrl": "/viewer/book-attachment/jRbmsakXkovi6x5bu5ynpg/i0PPXvOmYE4jy~39ptx~lZ",
"size": 160844,
"target": "MAP"
},
{
"id": "j1QQYwPnZF5kz~40quy~mA",
"name": "My Document Archive",
"file": "TN_WS_use_cases.zip",
"mimeType": "application/zip",
"externalLink": false,
"viewerUrl": "/viewer/book-attachment/jRbmsakXkovi6x5bu5ynpg/j1QQYwPnZF5kz~40quy~mA",
"size": 87458,
"target": "MAP"
},
{
"id": "k2RRZxQoAG6la~51rvz~nB",
"name": "AI Templates",
"file": "Templates_(AI).pdf",
"mimeType": "application/pdf",
"externalLink": false,
"viewerUrl": "/viewer/book-attachment/jRbmsakXkovi6x5bu5ynpg/k2RRZxQoAG6la~51rvz~nB",
"size": 146196,
"target": "MAP"
}
]
| Field | Type | Description |
|---|---|---|
id |
String | The attachment's khubId. |
name |
String | The attachment's name as it appears in the portal. |
file |
String | The attachment's filename. |
mimeType |
String | The attachment's MIME type. |
externalLink |
Boolean | Is true if the value of the file field is a URL. |
viewerUrl |
String | The URL fragment that opens the map attachment in the portal. Not available if the value of externalLink is true. |
size |
Number | The attachment size in bytes. |
target |
String | Can be MAP for a structured document, or DOCUMENT for an unstructured document. |
It is recommended to use the List attachments web service over the map attachment web service.