---
title: "Get a program report by org. Roles: admin."
method: POST
path: "/api/memberships/{membershipId}/reports/programs"
tags: ["Programs", "Reports", "Organizations"]
---

# Get a program report by org. Roles: admin.

`POST /api/memberships/{membershipId}/reports/programs`

## Path parameters

- `membershipId` integer, required

## Request body

- ProgramReportCriteria
  - `startDate` string, date, required
  - `endDate` string, date, required
  - `audienceId` integer
  - `typeCode` 'CERTIFICATION' | 'CHALLENGE' | 'MEMBERSHIP' | 'PASS', required
  - `groupId` integer
  - `endDateTime` string, date-time
  - `startDateTime` string, date-time

## Response `200`

OK

- ProgramReport
  - `criteria` ReportCriteria
    - `startDate` string, date, required
    - `endDate` string, date, required
    - `audienceId` integer
    - `endDateTime` string, date-time
    - `startDateTime` string, date-time
  - `memberCount` integer
  - `programs` ProgramItem[]
    - `programId` integer
    - `name` string
    - `enrolledCount` integer
    - `notStartedCount` integer
    - `inProgressCount` integer
    - `completedCount` integer
    - `failedCount` integer
    - `expiredCount` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/mobilecoach/apis/untitled-api.md) · [All operations](https://skmtc.dev/mobilecoach/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mobilecoach/untitled-api/revisions/f2568e11c0ab/schema)
