Monthly Losses Graphs

Monthly Losses Graphs Documentation

Monthly Losses Graph [GET]

Monthly Losses Graph [GET]

Request

Endpoint

GET /api/v2/reports/monthly_losses_graphs/99156120-a149-43e9-8b7b-9eb4f55939f2
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "reports::monthlylossesgraph",
    "type": "reports_monthly_losses_graphs",
    "attributes": {
      "account_list": {
        "id": "99156120-a149-43e9-8b7b-9eb4f55939f2",
        "name": "Yan ",
        "creator_id": "a88cc1ae-8c9a-4733-9e7c-d4c5d904300b",
        "created_at": "2022-01-13T06:18:41+13:00",
        "updated_at": "2022-01-13T06:18:41+13:00",
        "settings": {
        },
        "active_mpd_start_at": null,
        "active_mpd_finish_at": null,
        "active_mpd_monthly_goal": null,
        "salary_organization_id": "992d5c00-e9b8-42b5-b70d-c311477ce434",
        "primary_appeal_id": null,
        "notify_attempted_at": null,
        "notified_at": null,
        "locked_at": null
      },
      "created_at": "2022-01-12T17:18:41Z",
      "losses": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "month_names": [
        "Jan 2021",
        "Feb 2021",
        "Mar 2021",
        "Apr 2021",
        "May 2021",
        "Jun 2021",
        "Jul 2021",
        "Aug 2021",
        "Sep 2021",
        "Oct 2021",
        "Nov 2021",
        "Dec 2021",
        "Jan 2022"
      ],
      "updated_at": null,
      "updated_in_db_at": null
    },
    "relationships": {
      "account_list": {
        "data": {
          "id": "99156120-a149-43e9-8b7b-9eb4f55939f2",
          "type": "account_lists"
        }
      }
    }
  }
}

Fields

Attributes

account_list

Type Account List

Description The account list this report is for

created_at

Type date

Description The timestamp of when this resource was created

losses

Type [number]

Description The month-over-month losses each month

month_names

Type [string]

Description The name of each month

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

account_list.data

Type Account List

Description The account list that this report belongs to

Last updated