Description
As administrator for archiving purposes we need to identify where a specific attachment is located within an experiment.
Solution
Use the layout API endpoint GET/entities/{eid}/layout/location to identify the placement of the attachment in the experiment. The attributes "pageName" and "index" will indicate the page and location of the attachment in the experiment.
Steps
1. Log into Signals Notebook as an administrator
2. Obtain the eid of the attachment
3. Navigate to the Signals Notebook APIs Document Swagger UI page
4. Expand the ‘Entities’ section
5. Expand the ‘GET/entities/{eid}/layout/location’ endpoint and click ‘Try it Out’
6. In the eid box introduce the attachment's eid
7. Click ‘Execute’
8. Look for the attributes section in the response:
"attributes": {
"id": "excel:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "layoutLocation",
"pageId": "experiment:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"pageName": "Page 1",
"index": 2
}
Note
The index value starts at 0 so the first entity will have an index value of 0, the second a value of 1 and so on.
Comments
0 comments
Article is closed for comments.