|
Http Verb |
GET |
|---|---|
|
Url |
/integration/assets/r1/notifications/attachments |
|
Permissions required |
Core Additional Parameters: Edit (fsm.core.additionalparameter.edit) Customer: View (fsm.core.technicalobject.customer.view) Organizational Structure Entities: View (fsm.core.structure.view) Facility Configuration: View (fsm.core.technicalobject.configuration.view) Resource: View (fsm.core.resource.view) |
|
Last Modified Version |
r1 |
|
Tech Tags |
MULTILANGUAGE-FIELDS PAGINATION ORDERING-SERVER-SIDE |
|
Available Async |
No |
BPMN Diagram (TBD)
Business Logic
This Integration API provides the list of notification’s attachments.
One of code or externalCode must be present. If code is provided it has the precedence among the other fields. If externalCode is provided, externalSystemId is mandatory.
System verifies Permission Required and starts the elaboration that is organized in steps.
STEP 1 - External System Validation
System takes Input fields and checks their existence in internal configuration.
API Verb: GET
Resource: External Systems
Input: externalSystemCode, active=true
Output: externalSystemId
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
STEP 2 - Notification Retrieve
System takes Input fields and checks their existence.
API Verb: GET
Resource: Notifications
Input: {code} OR {externalSystemId, externalCode}
Output: notificationId
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
STEP 3 - Notification Position Retrieve
System takes Input fields and checks their existence.
API Verb: GET
Resource: /{notificationId}/positions
Input: notificationId, positionNumber
Output: positionId
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
STEP 4 - Notification Documents Retrieve
System takes Input fields and checks their existence.
API Verb: GET
Resource: Attachments
Input: notificationId, positionId, description, insertDate
Output: list of [attachmentId, description, insertDate, insertDateCentral, documentCategoryId, uuid]
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
Error Type:
-
Others - see link in Resource
STEP 5 - Document Category Retrieve
System takes Input fields and checks their existence.
This step is skipped if input fileds are absent.
API Verb: GET
Resource: Document Categories
Input: documentCategoryDescription
Output: documentCategoryId
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. See Response payload fields
STEP 6 - File Details Retrieve
System takes Input fields and checks their existence. System takes only the last version (active=true) for each uuid.
API Verb: GET
Resource: Files
Input: list of [uuid], active=true
Output: list of [active, draft, deleted, byteDimension, name, fileExtension]
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
STEP 7 - Document Category Transcode
System takes Input fields and gets the resource.
If System can obtain the Output fields → elaboration is stopped. See Response payload fields
If System can’t obtain the Output fields → responds with error. See Response payload fields
Error Type:
-
Others - see link in Resource
Path Parameters
As their name suggests, they are included in the URL path of the endpoint.
Not applicable.
Query String Parameters
Start with a ? and includes parameters listed one after the another separated by &.
Filter
|
Field |
Description |
Mandatory |
Constraint |
|
|---|---|---|---|---|
|
1 |
_language |
Language option for the response. It supports the following values: - ALL: Request the server to return every possible translation of the response data. - USER |
N |
Null or Not Blank |
|
2 |
_exclude |
Allows to specify a subset of data that need to be excluded from the response |
N |
Null or Not Blank |
|
3 |
_fields |
Allows to specify a subset of data that need to be returned |
N |
Null or Not Blank |
|
4 |
externalSystemCode |
External System Code |
N |
Null or Not Blank |
|
5 |
code |
Notification Code |
N |
Null or Not Blank |
|
6 |
externalCode |
Notification Code in External System |
N |
Null or Not Blank |
|
7 |
description |
Attachment Name |
N |
|
|
8 |
positionNumber |
Position Number |
N |
|
|
9 |
insertDate |
Insert Date |
N |
|
|
10 |
documentCategoryDescription |
Document Category Description |
N |
|
Fields
The parameter _fields allows to choose output fields. More info here How to use APIs: Output fields selection.
Header Parameters
Parameters included in the request headers. Generally, request headers are used to keep authorization parameters.
Default.
Request Example
{baseUrl}/integration/assets/r1/attachments?externalSystemCode=SAP&code=N008965&positionNumber=0002
Response documentation
Response payload fields
|
Field |
Field Type |
Description |
|
|---|---|---|---|
|
1 |
id |
|
File id |
|
2 |
notificationCode |
|
Notification Code |
|
3 |
description |
|
File Description |
|
4 |
insertDate |
|
File Insert Date |
|
5 |
insertDateCentral |
|
File Central Insert Date |
|
6 |
documentCategory |
|
|
|
7 |
uuid |
|
File uuid |
|
8 |
byteDimension |
|
File Dimension in byte |
|
9 |
active |
|
Flag Active |
|
10 |
deleted |
|
Flag Deleted |
|
11 |
draft |
|
Flag Draft |
|
12 |
name |
|
File Name |
|
13 |
fileExtension |
|
File Extension |
documentCategoryObject
|
Field |
Description |
|
|---|---|---|
|
1 |
description |
Description |
Compliant with RFC Standard https://www.rfc-editor.org/rfc/rfc9457.html.
Extension fields:
|
Field |
Description |
Note |
|---|---|---|
|
code |
Extension member of a Problem Details Object that contains the error code |
Only for ERROR |
Response example
{
"extension": {},
"content": [
{
"id": 3681,
"notificationCode": "N008965",
"description": "Photo.jpg",
"insertDate": "2025-05-07T10:16:34.196Z",
"insertDateCentral": "2025-05-07T10:16:34.196Z",
"uuid": "a1d5d85e-cf05-495b-8acb-8b82e9da7499",
"byteDimension": "834",
"active": true,
"deleted": false,
"draft": false,
"documentCategory": {
"description": [
{
"lang": "en",
"value": "Metro OC"
}
]
},
"extension": {
}
}
]
}
Error example
{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "External system string does not exist",
"instance": "/integration/timesheets/r1/resources-calendars",
"code": "IA001_001"
}