Skip to content

Saved reports

A saved report is a report someone saved in Reports under a name, together with the settings it opens with: a standard report with its filters, or a custom report. It belongs to the member who saved it, who can share it with the whole team or with chosen members.

Every endpoint acts as the person whose personal access token is used. Anyone with access to Reports can list and open their own saved reports and those shared with them, and save new ones; without access to Reports every endpoint answers 403. The owner can change and delete a report and turn team sharing on or off. A member given edit access can rename a report and change its settings; view access and team sharing allow opening it only. Reports owned by deactivated members can be seen only by people with the permission to view saved reports of deactivated members, and changed or deleted only by people with the permission to edit them. Saving a Profitability or Uninvoiced report also needs the permission that report needs. Being an administrator, manager or member makes no other difference: access follows ownership and sharing.

A report someone saved in Reports: its name, which report it is and the settings it reopens with, who owns it and who it is shared with.

Field Type Description
id string The saved report’s id. Read only.
name string The report’s name.
description string A note about the report, up to 2,000 characters. Can be null.
kind string Which report this is: time, detailedTime, detailedExpense, profitability, uninvoiced, contractor, activity, invoiced, payments, receivables or custom. Set when the report is created; it cannot change.
configuration object The settings the report opens with. For time, detailedTime, detailedExpense, profitability and uninvoiced: the query parameters of the matching /v1/reports/... endpoint (for example groupBy, or filterProjectIds as an array of ids), plus period. For custom: the custom report’s definition (see Create a saved report). For the other kinds: the settings as saved in the app, read only. period is week, semimonth, month, quarter, year, custom or all; for every value except custom and all, from and to move with the calendar each time the report is opened.
owner object The member who owns the report, as { id, name }. Read only.
isSharedWithTeam boolean Whether everyone in the business can open the report (as viewers). Only the owner may change it.
sharedWith array of object The members the report is shared with by name, each { member: { id, name }, access: "view" | "edit" }. Shown to the owner only; empty for everyone else. Read only.
access string What the token’s person may do with the report: owner, edit (may rename it and change its settings) or view (may open it only). Read only.
isPinned boolean Whether the token’s person has pinned the report. Read only.
createdAt datetime When the report was created. Read only.
updatedAt datetime When the report’s name, description or configuration last changed. Read only.

The saved reports the token’s person can open: their own, those shared with them by name, and those shared with the whole team. Newest first.

GET /v1/saved-reports

Parameters

Parameter In Type Required Description
kind query string No Only reports of this kind: time, detailedTime, detailedExpense, profitability, uninvoiced, contractor, activity, invoiced, payments, receivables or custom.
access query string No owner for the person’s own reports only, shared for reports others shared with them.
search query string No Matches the report name.
updatedSince query datetime No Only reports whose name, description or configuration changed at or after this moment. Records deleted since then are not reported.
page query integer No Page number, from 1. Default 1.
limit query integer No Rows per page. Default 20, at most 1000.

Rules

  • 400 when kind or access has a value outside its list, or updatedSince is not a valid moment.
  • 200 without reports whose owner has been deactivated, unless the person has the permission to view saved reports of deactivated members.
  • 200 without reports shared by name with a member who is no longer active, for that member.

Example request

Terminal window
curl "https://api.onesuite.io/v1/saved-reports?limit=1" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm3k6s1r0001",
"name": "Monthly billable by project",
"description": "For the finance check-in.",
"kind": "time",
"configuration": {
"period": "month",
"from": "2026-11-01",
"to": "2026-11-30",
"groupBy": "project",
"includeFixedFee": false,
"activeProjectsOnly": true,
"filterDepartmentIds": []
},
"owner": {
"id": "cm3k2m8b0005",
"name": "Alex Rivera"
},
"isSharedWithTeam": true,
"sharedWith": [
{
"member": {
"id": "cm3k2m8b0011",
"name": "Sam Lee"
},
"access": "edit"
}
],
"access": "owner",
"isPinned": true,
"createdAt": "2026-09-14T09:12:44.120Z",
"updatedAt": "2026-11-02T16:40:03.512Z"
}
],
"totalCount": 6,
"page": 1,
"limit": 1
}

One saved report the token’s person can open.

GET /v1/saved-reports/:id

Parameters

Parameter In Type Required Description
id path string Yes The saved report’s id.

Rules

  • 404 when the report does not exist in the business or the person cannot open it.

Example request

Terminal window
curl "https://api.onesuite.io/v1/saved-reports/cm3k6s1r0002" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cm3k6s1r0002",
"name": "Uninvoiced this quarter",
"description": null,
"kind": "uninvoiced",
"configuration": {
"period": "quarter",
"from": "2026-10-01",
"to": "2026-12-31",
"filterProjectIds": [],
"activeProjectsOnly": true,
"withBalanceOnly": true
},
"owner": {
"id": "cm3k2m8b0011",
"name": "Sam Lee"
},
"isSharedWithTeam": true,
"sharedWith": [],
"access": "view",
"isPinned": false,
"createdAt": "2026-10-01T08:00:12.004Z",
"updatedAt": "2026-10-01T08:00:12.004Z"
}
}

Saves a report owned by the token’s person. Body: name (required), description, kind (required), configuration (required) and isSharedWithTeam (default false). For custom, configuration is { subject, view, isGrouped, fields, metrics, includeZeroValues, rules, period, from, to, clientIds, projectIds, roleIds, departmentIds, memberIds, projectTagIds }, where subject is time, expense, invoice, payment or timeOff, view is summary or detailed, and fields and metrics are the custom report builder’s field and metric ids, in display order. Answers 201 with the saved report.

POST /v1/saved-reports

Parameters

Parameter In Type Required Description
name body string Yes The report’s name. Required; surrounding spaces are trimmed.
description body string No Up to 2,000 characters.
kind body string Yes time, detailedTime, detailedExpense, profitability, uninvoiced or custom.
configuration body object Yes The settings, as described on the savedReport object.
isSharedWithTeam body boolean No Let everyone in the business open it. Default false.

Rules

  • 400 when name is empty, description is longer than 2,000 characters, or configuration has a key or value the chosen kind does not accept.
  • 403 when the person has no access to Reports, or the report’s kind needs a permission the person lacks: profitability needs permission to view the Profitability report, uninvoiced permission to view invoicing reports.
  • 400 for the kinds that can only be saved in the app: contractor, activity, invoiced, payments and receivables.

Example request

Terminal window
curl "https://api.onesuite.io/v1/saved-reports" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Design hours by member","kind":"detailedTime","configuration":{"period":"month","from":"2026-11-01","to":"2026-11-30","groupBy":"member","filterWorkTypeIds":["cm3k2w4t0002"]}}'

Example response — status 201

{
"data": {
"id": "cm3k6s1r0007",
"name": "Design hours by member",
"description": null,
"kind": "detailedTime",
"configuration": {
"period": "month",
"from": "2026-11-01",
"to": "2026-11-30",
"groupBy": "member",
"filterWorkTypeIds": [
"cm3k2w4t0002"
]
},
"owner": {
"id": "cm3k2m8b0005",
"name": "Alex Rivera"
},
"isSharedWithTeam": false,
"sharedWith": [],
"access": "owner",
"isPinned": false,
"createdAt": "2026-11-20T10:05:31.288Z",
"updatedAt": "2026-11-20T10:05:31.288Z"
}
}

Changes a saved report’s name, description, configuration or isSharedWithTeam. Only the keys sent change; a configuration sent replaces the saved settings whole. The kind cannot change. Answers 200 with the saved report.

PATCH /v1/saved-reports/:id

Parameters

Parameter In Type Required Description
id path string Yes The saved report’s id.
name body string No New name; cannot be empty.
description body string No New description, up to 2,000 characters; null clears it.
configuration body object No New settings for the report’s kind.
isSharedWithTeam body boolean No Let everyone in the business open it, or stop sharing it with the team. Only the owner may send this.

Rules

  • 404 when the report does not exist or the person cannot open it.
  • 403 when the person has view access only; also 403 when a person with edit access sends isSharedWithTeam (only the owner may change sharing).
  • A report whose owner has been deactivated can be changed (200) by a person with the permission to edit saved reports of deactivated members; anyone else gets 404 or 403.
  • 400 for an empty name, a description over 2,000 characters, a kind in the body, or a configuration the kind does not accept.
  • 403 when the new configuration’s kind needs a permission the person lacks.
  • 409 when changing the configuration of a kind that can only be changed in the app (contractor, activity, invoiced, payments, receivables), or when the new configuration cannot be used together with the report’s other settings in the app.
  • Changing configuration (200) also discards any changes the person made to this report in the app without saving them.

Example request

Terminal window
curl "https://api.onesuite.io/v1/saved-reports/cm3k6s1r0007" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Design hours by member (billable)","configuration":{"period":"month","from":"2026-11-01","to":"2026-11-30","groupBy":"member","filterWorkTypeIds":["cm3k2w4t0002"],"isBillable":true}}'

Example response — status 200

{
"data": {
"id": "cm3k6s1r0007",
"name": "Design hours by member (billable)",
"description": null,
"kind": "detailedTime",
"configuration": {
"period": "month",
"from": "2026-11-01",
"to": "2026-11-30",
"groupBy": "member",
"filterWorkTypeIds": [
"cm3k2w4t0002"
],
"isBillable": true
},
"owner": {
"id": "cm3k2m8b0005",
"name": "Alex Rivera"
},
"isSharedWithTeam": false,
"sharedWith": [],
"access": "owner",
"isPinned": false,
"createdAt": "2026-11-20T10:05:31.288Z",
"updatedAt": "2026-11-20T10:22:08.940Z"
}
}

Deletes a saved report. Only its owner can, or, when the owner has been deactivated, a person with the permission to edit saved reports of deactivated members. Everyone it was shared with loses it. Answers 200 with a message.

DELETE /v1/saved-reports/:id

Parameters

Parameter In Type Required Description
id path string Yes The saved report’s id.

Rules

  • 404 when the report does not exist or the person cannot open it.
  • 403 when the person can open the report but is not its owner (edit access is not enough).

Example request

Terminal window
curl "https://api.onesuite.io/v1/saved-reports/cm3k6s1r0007" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Saved report deleted"
}