System API (1.0.0)
Download OpenAPI specification:Download
Upload a file
Upload a file
Authorizations:
Request Body schema: multipart/form-data
bucket required | string Enum: "images" "files" |
type required | string Enum: "sample" "avatar" "weighbridge" "contract" "image" "logo" "misc" "vehicle" "terms-conditions" "trade-contract" Name of the different file types in use (contract, sample etc) |
file required | Array of strings <binary> |
name required | string |
organisationId | string |
organisations | string |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "tags": [
- "string"
], - "info": {
- "bucket": "string",
- "type": "sample",
- "organisationId": "string",
- "name": "string",
- "hash": "string",
- "contentType": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisations": [
- "string"
], - "createdAtUTC": "string"
}, - "organisationId": "string",
- "userId": "string",
- "type": "string",
- "status": "active"
}
Download a file
Download a file
Authorizations:
path Parameters
id required | string Id of the file to download |
Responses
Response samples
- 400
- 401
- 403
- 409
- 500
{- "status": "string",
- "message": "string",
- "stack": "string",
- "code": "string",
- "body": { },
- "validation": [
- {
- "path": "string",
- "message": "string",
- "code": "string",
- "data": { }
}
]
}
Delete file
Archives a file.
Authorizations:
path Parameters
id required | string Id of the file to download |
Responses
Response samples
- 400
- 401
- 403
- 409
- 500
{- "status": "string",
- "message": "string",
- "stack": "string",
- "code": "string",
- "body": { },
- "validation": [
- {
- "path": "string",
- "message": "string",
- "code": "string",
- "data": { }
}
]
}
Request file information
Request file information without downloading it
Authorizations:
path Parameters
id required | string Id of the file to download |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "bucket": "string",
- "type": "sample",
- "organisationId": "string",
- "name": "string",
- "hash": "string",
- "contentType": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisations": [
- "string"
], - "createdAtUTC": "string"
}
Create cache
Endpoint to clear all or part of the cache
Authorizations:
Request Body schema: application/json
keys | Array of strings |
prefixes | Array of strings |
flush | boolean or null Default: false |
secrets | boolean or null Default: false |
Responses
Request samples
- Payload
{- "keys": [
- "string"
], - "prefixes": [
- "string"
], - "flush": false,
- "secrets": false
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "property1": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}, - "property2": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}
}
Get Location by What 3 Words
Get Location by What 3 Words
query Parameters
query | string Free text search field for querying |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Get Location by Address Id
Get Location by Address Id
query Parameters
id required | string Id of the address to get details for |
source | string Source of the address search result |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Search addresses
Search for addresses and address containers
query Parameters
query | string Free text search field for querying |
id | string |
countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "type": "string",
- "text": "string",
- "description": "string",
- "source": "loqate"
}
Get Location by Coordinates
Get Location by Coordinates
query Parameters
lat required | number Latitude |
lon required | number Longitude |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "property1": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}, - "property2": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}
}
Get Location by What 3 Words
Get Location by What 3 Words
query Parameters
query | string Free text search field for querying |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Get Location by Address Id
Get Location by Address Id
query Parameters
id required | string Id of the address to get details for |
source | string Source of the address search result |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Search addresses
Search for addresses and address containers
query Parameters
query | string Free text search field for querying |
id | string |
countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "type": "string",
- "text": "string",
- "description": "string",
- "source": "loqate"
}
Get Location by Coordinates
Get Location by Coordinates
query Parameters
lat required | number Latitude |
lon required | number Longitude |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "property1": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}, - "property2": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "property1": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}, - "property2": {
- "name": "string",
- "iso": "string",
- "iso3": "string",
- "enabled": "string",
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string"
}
}
Get Location by What 3 Words
Get Location by What 3 Words
query Parameters
query | string Free text search field for querying |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Get Location by What 3 Words
Get Location by What 3 Words
query Parameters
query | string Free text search field for querying |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Get Location by Address Id
Get Location by Address Id
query Parameters
id required | string Id of the address to get details for |
source | string Source of the address search result |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Search addresses
Search for addresses and address containers
query Parameters
query | string Free text search field for querying |
id | string |
countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "type": "string",
- "text": "string",
- "description": "string",
- "source": "loqate"
}
Get Location by Address Id
Get Location by Address Id
query Parameters
id required | string Id of the address to get details for |
source | string Source of the address search result |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Search addresses
Search for addresses and address containers
query Parameters
query | string Free text search field for querying |
id | string |
countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "type": "string",
- "text": "string",
- "description": "string",
- "source": "loqate"
}
Get Location by Coordinates
Get Location by Coordinates
query Parameters
lat required | number Latitude |
lon required | number Longitude |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Get Location by Coordinates
Get Location by Coordinates
query Parameters
lat required | number Latitude |
lon required | number Longitude |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}
Get Country Regions
Returns a list regions based on the users country
query Parameters
countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "regions": [
- {
- "iso": "string",
- "name": "string",
- "tb": 0,
- "country": "string",
- "group": "string",
- "aliases": [
- "string"
]
}
]
}
Get Country Regions
Returns a list regions based on the users country
query Parameters
countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "regions": [
- {
- "iso": "string",
- "name": "string",
- "tb": 0,
- "country": "string",
- "group": "string",
- "aliases": [
- "string"
]
}
]
}
Update system settings
Change the system settings document in the system module
Authorizations:
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "logging": {
- "level": "string",
- "filter": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}