To programmatically modify an existing SystemLink Test Result, follow the steps below.
- From the SystemLink web UI, access the Test Insights >> Results page.

- From the top right-hand corner, click the question mark icon and select HTTP API.
- This launches a new tab to the Swagger UI, an interactive manual for testing SystemLink's HTTP API.

- In the new Swagger UI tab, ensure that Test Monitor Service is selected from the top drop-down menu.
- This is the list of API used to interact with Test Results.

- Scroll through the list of API to find the /v2/update-results HTTP POST request under the Results header.
- This can be used to programmatically modify an existing Test Result.

- Click on the API to expand details. Then click on Try it out to test the API.

- Modify the requestBody to include only the below JSON string.
- When modifying a Test Result, an id must be provided at minimum. The remaining JSON keys can be included optionally.
- The replace key defines whether new data should replace the result's existing data. If set to false, new values will be added on top of the already existing values.
{
"results": [
{
"id": ""
}
]
"replace": false,
"determineStatusFromSteps": false
}
- To identify the ID of a Test Result, open the Test Result in the SystemLink UI and copy the string on the end of the URL.

- Insert this string as the value of id in the requestBody.
{
"results": [
{
"id": "3d311451-4948-47e4-b3f8-6a666ca9a669"
}
]
"replace": false,
"determineStatusFromSteps": false
}
- From the SystemLink UI, select the Utilities >> Files page.

- From here, upload a file that you wish to add to your Test Result.
- Once uploaded, double-click on the file to view it's details in the SystemLink web UI.
- Copy the string on the end of the URL to obtain the file ID.

- Modify the requestBody in the Swagger UI to include a fileIds array key. Paste your file ID as the value.
{
"results": [
{
"id": "3d311451-4948-47e4-b3f8-6a666ca9a669",
"fileIds": [
"67b70fef24e34e7508a66ae3"
]
}
],
"replace": false,
"determineStatusFromSteps": false
}
- Click the blue Execute button to test programmatically adding this file to an existing Test Result.

- Scroll down to see Responses section. A response with code 200 indicates that the API executed successfully.
