# Workweeks

Workweeks in Kantata OX are owned by an Account. They can be used as the default for an Account or
can be associated to a User through a Workweek Membership.

## Fetching a list of Workweeks

 - [GET /workweeks](https://developer.kantata.com/kantata/specification/workweeks/get-workweeks.md): The Workweeks endpoint provides a list of every default Workweek that belongs to the Account of the User making the request.
The response will contain an array of Workweek objects, sorted by their start_date.


This endpoint returns structured Workweek objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the workweeks top-level JSON key.
Please see our Response Format section for more information.

## Creating a new Workweek

 - [POST /workweeks](https://developer.kantata.com/kantata/specification/workweeks/create-workweek.md): This endpoint returns structured Workweek objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the workweeks top-level JSON key.
Please see our Response Format section for more information.

## Fetching a single Workweek

 - [GET /workweeks/{id}](https://developer.kantata.com/kantata/specification/workweeks/get-workweek.md): This endpoint returns structured Workweek objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the workweeks top-level JSON key.
Please see our Response Format section for more information.

## Updating an existing Workweek

 - [PUT /workweeks/{id}](https://developer.kantata.com/kantata/specification/workweeks/update-workweek.md): This endpoint returns structured Workweek objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the workweeks top-level JSON key.
Please see our Response Format section for more information.

## Deleting an existing Workweek

 - [DELETE /workweeks/{id}](https://developer.kantata.com/kantata/specification/workweeks/delete-workweek.md): The response will contain no content and an HTTP 204 status code if the request was
successful, or a standard Kantata OX error message explaining why the object could not be deleted.

