Latest profile endpoint enables clients to get the latest imported profile for the given meter. It either returns the latest profile (even if marked as suspicious) with 200 or a 404 error when the given meter has no profiles stored.Any token allowed to add profiles is able to read the latest profile as well. The purpose is to minimize the number of requests to Librarian. Clients should keep track of profiles sent to Librarian on their own. However, if they, for some reason, lose track, the preferred course of action is to use this endpoint rather than to send a series of profiles that have been sent earlier. Duplicate requests result in 409 responses.
This endpoint requires an Access token. The Import token auth method is deprecated and remains available only for backward compatibility
Request
Authorization
JWT Bearer
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
or
Path Params
Header Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.enectiva.cz//import/profiles////latest' \
--header'Accept: application/vnd.api+json' \
--header'Authorization: Bearer <token>'