Description: There is a need to use the API to modify the home location of a container’s to set a precise coordinate (e.g., B7) within a grid location.
Solution: Use the API endpoint PATCH /inventory/containers/{containerId} with the home location ID and the corresponding X/Y grid coordinates.
Steps:
1. Log into Signals Notebook as an administrator
2. Obtain the containers's eid
3. Obtain the location's id
4. Navigate to the Signals Notebook APIs Document Swagger UI page
5. Expand the ‘Inventory’ section
6. Expand the ‘PATCH /inventory/containers/{containerId}’ endpoint and click ‘Try it Out’
7. Paste the container's eid in the eid box
8. Modify the request body example as needed
9. Click ‘Execute’
Example Response Body:
{
"data": {
"type": "inventoryContainer",
"attributes": {
"homeLocation": {
"id": "id of the home location"
},
"homeLocationCoordinateX": 6,
"homeLocationCoordinateY": 1
}
}
}
Comments
0 comments
Article is closed for comments.