Authorization User Roles HTTP Methods Real-Time Data Streaming Status Codes Content Types Errors Pagination Rate Limiting Versioning
Please beware that the documentation is still in Alpha!
Logs refers to the exports a device can make. This endpoint can be used to view, edit, delete exports, and even to download exports.
To retrieve a log, you can get a Log
object.
1linkGET /v1/Logs
2linkGET /v1/Logs/{id}
3linkPUT /v1/Logs/{id}
4linkDELETE /v1/Logs/{id}
5linkGET /v1/Logs/{id}/download
6linkPUT /v1/Logs/{id}/unread
7linkGET /v1/Logs/new/count
1link{
2link "projectId": "string",
3link "fileName": "string",
4link "isOpened": true,
5link "isDiagnostic": true,
6link "id": "string",
7link "createdDate": "2023-01-04T14:58:18.223Z",
8link "lastUpdated": "2023-01-04T14:58:18.223Z"
9link}
1linkexport interface Log {
2link id: string;
3link projectId: string;
4link fileName: string;
5link isOpened: boolean;
6link isDiagnostic: boolean;
7link createdDate: Date;
8link lastUpdated: Date;
9link}
1linkpublic class Log
2link{
3link public Guid Id { get; set; }
4link public Guid ProjectId { get; set; }
5link public string FileName { get; set; }
6link public bool IsOpened { get; set; }
7link public bool IsDiagnostic { get; set; }
8link public DateTime CreatedDate { get; set; }
9link public DateTime LastUpdated { get; set; }
10link}
ReadOnly
HTTP-Get handler that retrieves all the logs of the user making the request.
A list of all logs of the user.
Managers retrieves all logs under the user's tenant.
1linkGET https://api.marxact.com/v1/Logs HTTP/1.1
2linkAuthorization: Bearer {{token}}
1linkHTTP/1.1 200 OK
2linkContent-Type: application/json
3link[
4link { Log_1 },
5link ...
6link { Log_n },
7link]
ReadOnly
HTTP-Get handler that retrieves a log of the user making the request.
The given log with the corresponding identifier owned by the user making the request, or 404 when it doesn't exist.
Managers are capable or retrieving logs under the user's tenant.
1linkGET https://api.marxact.com/v1/Logs/{id} HTTP/1.1
2linkAuthorization: Bearer {{token}}
1linkHTTP/1.1 200 OK
2linkContent-Type: application/json
3link{
4link "result": {},
5link "value": {
6link Log,
7link }
8link}
Admin
HTTP-Put handler that updates a log with the corresponding identifier.
The updated log when succesful.
1linkPUT https://api.marxact.com/v1/Logs/{id} HTTP/1.1
2linkAuthorization: Bearer {{token}}
3linkContent-Type: application/json
4link{
5link Log
6link}
1linkHTTP/1.1 200 OK
2linkContent-Type: application/json
3link{
4link UpdatedLog,
5link}
Admin
HTTP-Delete handler that deletes a log wiht the corresponding identifier.
The deleted log when succesful.
1linkDELETE https://api.marxact.com/v1/Logs/{id} HTTP/1.1
2linkAuthorization: Bearer {{token}}
1linkHTTP/1.1 200 OK
2linkContent-Type: application/json
3link{
4link DeletedLog,
5link}
ReadOnly
HTTP-Get handler that retrieves a stream to download the log of the user making the request.
A stream of the log with the corresponding identifier owned by the user making the request, or 404 when it doesn't exist.
Managers are capable or retrieving logs under the user's tenant.
1linkGET https://api.marxact.com/v1/Logs/{id}/download HTTP/1.1
2linkAuthorization: Bearer {{token}}
1linkHTTP/1.1 200 OK
2linkAccess-Control-Expose-Headers: Content-Disposition, File-Type
3linkContent-Disposition: attachment; filename=<FILENAME>.txt|.csv|.pdf|.dxf; filename*=UTF-8''<FILENAME>.txt|.csv|.pdf|.dxf
4linkFile-Type: text/plain | application/<csv|pdf|dxf>
5link... FILE CONTENT ...
ReadOnly
HTTP-Put handler that marks a log of the user making the request as "unread"
The updated log with the corresponding identifier owned by the user making the request, or 404 when it doesn't exist.
Managers are capable or retrieving logs under the user's tenant.
1linkPUT https://api.marxact.com/v1/Logs/{id}/unread HTTP/1.1
2linkAuthorization: Bearer {{token}}
3linkContent-Type: application/json
4link{
5link Log
6link}
1linkHTTP/1.1 200 OK
2linkContent-Type: application/json
3link{
4link UnreadLog,
5link}
ReadOnly
HTTP-Get handler that counts the amount of new logs of the user making the request.
The amount of new logs.
Managers are capable or counting logs under the user's tenant.
1linkGET https://api.marxact.com/v1/Logs/new/count HTTP/1.1
2linkAuthorization: Bearer {{token}}
1linkHTTP/1.1 200 OK
2linkn