Apis related to Validation.
Interu API (v2_28)
Bodyapplication/jsonrequired
The URI of the source location. This is the upstream location in the supply chain.
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/location-links
- UAThttps://api.uat.interu.io/organisations/{orgId}/location-links
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://developer.interu.io/_mock/reference/api/organisations/{orgId}/location-links' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-H 'contentType: application/json' \
-d '{
"from": "/organisations/{orgId}/locations/{locationId}",
"to": "/organisations/{orgId}/locations/{locationId}"
}'The request has succeeded and will either return the newly created resource or where appropriate a record that reflects the success of the action.
The URI of the source location. This is the upstream location in the supply chain.
The URI of the target location. This is the downstream location in the supply chain.
Response
application/json
{ "from": "/organisations/{orgId}/locations/{locationId}", "to": "/organisations/{orgId}/locations/{locationId}", "id": "string", "createdBy": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedBy": "string", "updatedTime": "2019-08-24T14:15:22Z" }
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/location-links
- UAThttps://api.uat.interu.io/organisations/{orgId}/location-links
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.interu.io/_mock/reference/api/organisations/{orgId}/location-links?locationUri=http%3A%2F%2Fexample.com&linkDirection=FROM&size=20&page=0' \
-H 'X-API-Key: YOUR_API_KEY_HERE'Response
application/json
{ "content": [ { … } ], "page": { "size": 0, "page": 0, "totalElements": 0, "totalPages": 0 } }
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/location-links/{linkId}
- UAThttps://api.uat.interu.io/organisations/{orgId}/location-links/{linkId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.interu.io/_mock/reference/api/organisations/{orgId}/location-links/{linkId}' \
-H 'X-API-Key: YOUR_API_KEY_HERE'Response
application/json
{ "from": "/organisations/{orgId}/locations/{locationId}", "to": "/organisations/{orgId}/locations/{locationId}", "id": "string", "createdBy": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedBy": "string", "updatedTime": "2019-08-24T14:15:22Z" }