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" "videos" |
| type required | string Enum: "sample" "avatar" "weighbridge" "contract" "image" "logo" "misc" "vehicle" "terms-conditions" "trade-contract" "rt-certificate" 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
- 404
- 500
{- "id": "string",
- "tags": [
- "string"
], - "info": {
- "bucket": "string",
- "type": "sample",
- "organisationId": "string",
- "name": "string",
- "path": "string",
- "hash": "string",
- "contentType": "string",
- "url": "string",
- "urlStream": "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
- 404
- 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
- 404
- 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
- 404
- 500
{- "bucket": "string",
- "type": "sample",
- "organisationId": "string",
- "name": "string",
- "path": "string",
- "hash": "string",
- "contentType": "string",
- "url": "string",
- "urlStream": "string",
- "userId": "string",
- "userName": "string",
- "organisations": [
- "string"
], - "createdAtUTC": "string"
}Retrieve system settings
Initial API to get required data for the client
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "commodities": [
- {
- "id": "string",
- "countryISO": "GB",
- "items": [
- {
- "id": 0,
- "name": "string",
- "types": [
- {
- "id": 0,
- "name": "string",
- "grades": [
- {
- "id": 0,
- "name": "string",
- "varieties": [
- null
]
}
]
}
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "weight": {
- "name": "string",
- "conversion": 0
}
}
], - "type": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}, - "weighbridgeWeight": {
- "name": "string",
- "conversion": 0
}
}
], - "sellerCommodities": [
- {
- "id": "string",
- "name": "string"
}
], - "trading": {
- "settlementDeductionReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "settlementBonusReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "exFarmPriceCommodities": [
- {
- "id": 0,
- "name": "string",
- "commodityId": 0,
- "grades": [
- 0
], - "default": true
}
], - "closeListingReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "seamlessTrading": {
- "openPeriodMinutes": 0,
- "reviewPeriodMinutes": 0,
- "bidExpiryMinutes": 0
}
}, - "conversions": {
- "property1": 0,
- "property2": 0
}, - "countries": {
- "property1": {
- "iso": "string",
- "name": "string",
- "enabled": true,
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "iso3": "string",
- "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}
}, - "property2": {
- "iso": "string",
- "name": "string",
- "enabled": true,
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "iso3": "string",
- "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}
}
}, - "regions": [
- {
- "iso": "string",
- "name": "string",
- "group": "string",
- "country": "string"
}
], - "regionGroups": [
- {
- "group": "string",
- "regions": "string"
}
]
}Retrieve system settings
Initial API to get required data for the client
Authorizations:
path Parameters
| country required | string Users country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "commodities": [
- {
- "id": "string",
- "countryISO": "GB",
- "items": [
- {
- "id": 0,
- "name": "string",
- "types": [
- {
- "id": 0,
- "name": "string",
- "grades": [
- {
- "id": 0,
- "name": "string",
- "varieties": [
- null
]
}
]
}
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "weight": {
- "name": "string",
- "conversion": 0
}
}
], - "type": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}, - "weighbridgeWeight": {
- "name": "string",
- "conversion": 0
}
}
], - "sellerCommodities": [
- {
- "id": "string",
- "name": "string"
}
], - "trading": {
- "settlementDeductionReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "settlementBonusReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "exFarmPriceCommodities": [
- {
- "id": 0,
- "name": "string",
- "commodityId": 0,
- "grades": [
- 0
], - "default": true
}
], - "closeListingReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "seamlessTrading": {
- "openPeriodMinutes": 0,
- "reviewPeriodMinutes": 0,
- "bidExpiryMinutes": 0
}
}, - "conversions": {
- "property1": 0,
- "property2": 0
}, - "countries": {
- "property1": {
- "iso": "string",
- "name": "string",
- "enabled": true,
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "iso3": "string",
- "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}
}, - "property2": {
- "iso": "string",
- "name": "string",
- "enabled": true,
- "units": {
- "distance": "string",
- "weight": "string",
- "capacity": "string",
- "temperature": "string"
}, - "iso3": "string",
- "currency": "string",
- "callingCode": "string",
- "zoneDescriptor": "string",
- "locale": "string",
- "continent": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}
}
}, - "regions": [
- {
- "iso": "string",
- "name": "string",
- "group": "string",
- "country": "string"
}
], - "regionGroups": [
- {
- "group": "string",
- "regions": "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
- 404
- 500
{- "message": "string",
- "status": "string"
}Response samples
- 200
- 400
- 401
- 403
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 500
{- "id": "string",
- "regions": [
- {
- "iso": "string",
- "name": "string",
- "tb": 0,
- "country": "string",
- "group": "string",
- "ukGroup": "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
- 404
- 500
{- "id": "string",
- "regions": [
- {
- "iso": "string",
- "name": "string",
- "tb": 0,
- "country": "string",
- "group": "string",
- "ukGroup": "string",
- "aliases": [
- "string"
]
}
]
}Create a short Hurl URL
Create a short Hurl URL
Request Body schema: application/json
| template required | string |
| source | string or null |
| campaign | string or null |
| url required | string |
Responses
Request samples
- Payload
{- "template": "string",
- "source": "string",
- "campaign": "string",
- "url": "string"
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}Import and overwrite commodity varieties
Authorizations:
Request Body schema: multipart/form-data
| organisationId | string or null |
| organisationName | string or null |
| file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}Ask an ag expert
Ask an agricultural expert for advice on a farming related topic
Authorizations:
Request Body schema: application/json
| question required | string <= 1000 |
required | Array of objects or null |
Responses
Request samples
- Payload
{- "question": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
]
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}Ask an ag expert about the quality of a grain sample
Ask an agricultural expert for an analysis of a grain sample
Authorizations:
Request Body schema: application/json
required | Array of objects or null | ||||||||||||||
Array
| |||||||||||||||
Responses
Request samples
- Payload
{- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
]
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}Retrieve commodities
Retrieve commodities
query Parameters
| countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "countryISO": "GB",
- "items": [
- {
- "id": 0,
- "name": "string",
- "types": [
- {
- "id": 0,
- "name": "string",
- "grades": [
- {
- "id": 0,
- "name": "string",
- "varieties": [
- "string"
]
}
]
}
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "weight": {
- "name": "string",
- "conversion": 0
}
}
], - "type": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}, - "weighbridgeWeight": {
- "name": "string",
- "conversion": 0
}
}
]Retrieve commodity default specifications
Retrieve commodity default specifications
Authorizations:
path Parameters
| id required | string Id of the resource |
query Parameters
| commodityGrade | string Filter records by commodity grade |
| commodityType | string Filter by commodity type |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "commodity": {
- "id": 0,
- "name": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}Create a new conversation based on this message
Authorizations:
Request Body schema: application/json
| to required | string |
| message required | string |
| listingId | string or null |
| listingType | string or null Enum: "livestock" "crop" |
| conversationId | string or null |
| title | string or null |
Responses
Request samples
- Payload
{- "to": "string",
- "message": "string",
- "listingId": "string",
- "listingType": "livestock",
- "conversationId": "string",
- "title": "string"
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "messages": [
- {
- "sentById": "string",
- "sentByName": "string",
- "message": "string",
- "createdAtUTC": "string"
}
], - "listingId": "string",
- "listingType": "livestock",
- "conversationId": "string",
- "createdAtUTC": "string",
- "title": "string"
}Retrieve all conversations for a user
Authorizations:
query Parameters
| limit | integer Limit page size of results |
| offset | integer Number of results to skip for the current page |
| sortBy | string Sort results by this field |
| sortDesc | boolean Sort results descending if true, otherwise ascending |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "docs": [
- {
- "messages": [
- {
- "sentById": "string",
- "sentByName": "string",
- "message": "string",
- "createdAtUTC": "string"
}
], - "listingId": "string",
- "listingType": "livestock",
- "conversationId": "string",
- "createdAtUTC": "string",
- "title": "string"
}
], - "totalDocs": 0,
- "limit": 0,
- "offset": 0
}Retrieve a single conversation
Authorizations:
path Parameters
| id required | string Conversation ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "messages": [
- {
- "sentById": "string",
- "sentByName": "string",
- "message": "string",
- "createdAtUTC": "string"
}
], - "listingId": "string",
- "listingType": "livestock",
- "conversationId": "string",
- "createdAtUTC": "string",
- "title": "string"
}Add a new message to the conversation
Authorizations:
path Parameters
| id required | string Conversation ID |
Request Body schema: application/json
| to required | string |
| message required | string |
| listingId | string or null |
| listingType | string or null Enum: "livestock" "crop" |
| conversationId | string or null |
| title | string or null |
Responses
Request samples
- Payload
{- "to": "string",
- "message": "string",
- "listingId": "string",
- "listingType": "livestock",
- "conversationId": "string",
- "title": "string"
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "messages": [
- {
- "sentById": "string",
- "sentByName": "string",
- "message": "string",
- "createdAtUTC": "string"
}
], - "listingId": "string",
- "listingType": "livestock",
- "conversationId": "string",
- "createdAtUTC": "string",
- "title": "string"
}Retrieve a conversation for a listing
Authorizations:
path Parameters
| action required | string Listing ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "messages": [
- {
- "sentById": "string",
- "sentByName": "string",
- "message": "string",
- "createdAtUTC": "string"
}
], - "listingId": "string",
- "listingType": "livestock",
- "conversationId": "string",
- "createdAtUTC": "string",
- "title": "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
- 404
- 500
{- "message": "string",
- "status": "string"
}