---
title: "Get all pbehavior timespans"
method: POST
path: "/pbehavior-timespans"
tags: ["pbehavior-timespans"]
---

# Get all pbehavior timespans

`POST /pbehavior-timespans`

Get time spans of calendar event within view span; {by_date: false}
adds exception spans with types, {by_date: true} merges adjacent spans if
gap between sequential ones less than 24 hours'

-  PERMISSIONS: `api_pbehavior:read`

## Request body

- PbehaviortimespanTimespansRequest — unresolved $ref

## Response `200`

OK

- PbehaviortimespanItemResponse[] — unresolved $ref

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/capensis/apis/canopsis-community-api.md) · [All operations](https://skmtc.net/capensis/apis/canopsis-community-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capensis/canopsis-community-api/revisions/7c842289e811/schema)
