Managry API (1.65.9)

Download OpenAPI specification:

Managry Support: support@managry.com URL: https://managry.com/support/ License: MIT

Managry API handles the management of time, attendance, and expenses. It's a backend service for the Current Timesheets and Traverse applications.

Authentication

Authentication is the process of verifying the identity of a user. This process is necessary to ensure that the user is who they claim to be.

Login

Authenticate a user and return a token for future requests

Request Body schema: application/json
required

User credentials

email
required
string
password
required
string

Responses

Request samples

Content type
application/json
{
  • "email": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "idToken": "string"
}

Commands

Commands are the primary way to interact with the system. All changes to the system, including entities, are made through commands.

Apply a command

This endpoint receives a command and applies it to the system.

There are many types of commands, each with its own set of parameters. The command type is specified in the mime type of the request. Therefore, the endpoint supports many mime types. The command parameters are specified in the request body.

Authorizations:
Bearer
Request Body schema:
required
dateTime
required
string <date-time>

The time when the command was created. This is the local time on the device in UTC format. It might differ from server time.

blobId
required
string <uuid>
fileName
required
string
ownerEntityType
required
string
ownerEntityId
required
string <uuid>
bytes
required
string <byte>

Responses

Request samples

Content type
{
  • "dateTime": "2019-08-24T14:15:22Z",
  • "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",
  • "fileName": "string",
  • "ownerEntityType": "string",
  • "ownerEntityId": "6da7bd98-1f0e-4b09-9a16-e8663f1e0b04",
  • "bytes": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "tag": "string"
}

Entities

Entities are the primary way to interact with the system. All data in the system is stored in entities. Entities are created, updated, and deleted through commands.

List entities

List all entities of a given type. The entities are returned in a paginated list. The list is sorted by the entity's server time.

Authorizations:
Bearer
path Parameters
entityName
required
string
Enum: "AttendanceTenant" "AttendanceUser"

Name of the entity to retrieve.

Responses

Response samples

Content type
application/vnd.managry.ApiErrorDto1+json
{
  • "code": "string",
  • "message": "string"
}

Get entity

Get an entity by its ID.

Authorizations:
Bearer
path Parameters
entityName
required
string
Enum: "AttendanceTenant" "AttendanceUser"

Name of the entity to retrieve.

entityId
required
string

The id of the entity to retrieve

Responses

Response samples

Content type
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "createTime": "2019-08-24T14:15:22Z",
  • "updateTime": "2019-08-24T14:15:22Z",
  • "serverTime": "2019-08-24T14:15:22Z",
  • "stableHashCode": 0,
  • "deleteTime": "2019-08-24T14:15:22Z",
  • "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
  • "fileName": "string",
  • "ownerEntityType": "string",
  • "ownerEntityId": "6da7bd98-1f0e-4b09-9a16-e8663f1e0b04",
  • "sizeInBytes": 0,
  • "pictureWidth": 0,
  • "pictureHeight": 0,
  • "bytes": "string"
}