Skip to main content

Update counters via API

ExternalCounters/UploadCountersHistory

Using this actionaction, a list of counter values can be updated.

This action requires the "Update counters" user right and a valid MXSuite license.

Endpoint

api/ExternalCounters/UploadCountersHistory

Body parameters

A list with this object type:

{
  name: string,
  locationName: string,
  value: number,
  timeStamp: Date
}
Validations
    name: Name of the counter locationName: Name of the vessel value: Actual counter value timeStamp: date and time of the reading of the counter value

    The entry is ignored if:
    - there is no location with that name.
    - there is no counter with that name for that location.
    - there is already an entry added for that counter in that location with the same value and timestamp.