What API do I use to fetch/get RouteAssignment?
API Endpoint: v1/api/integration/routeassignment
Method: GET
Request Format: Query Parameter
Query Parameters:
Query Parameter | How to provide | Usage |
|---|---|---|
modifiedbefore |
| Gets the records modified before the mentioned date. |
limit |
| Gets the number of records mentioned by limit.
|
pagenumber |
| Gets the record on defined pagenumber in case limit is less than the total number of records in database.
|
fields |
| Returns values mentioned in the fields
|
orderby |
| Returns result sorted by orderby attribute. |
filteron |
| Returns result which satisfies conditions.
|
Common Reason for API failure:
What might be the issue | What is the resolution |
Invalid field names in fields parameter | Use only allowed field names: id, name, primarypumpername, secondarypumpername, alternatepumpernames |
No data being returned on giving modifiedbefore query parameter | Provide modifiedbefore query parameter in ISO format. E.g., |
Authentication failure | Ensure proper x-api-key is provided in request headers |