# Workweek Memberships

A Workweek Membership represents the relationship of a user to a workweek.

## Fetching a list of Workweek Memberships

 - [GET /workweek_memberships](https://developer.kantata.com/kantata/specification/workweek-memberships/get-workweek-memberships.md): The Workweek Memberships endpoint provides a list of all workweek memberships that belongs to the
account of the user making the request. The response will contain an array of workweek membership
objects, sorted by their start_date.


This endpoint returns structured Workweek Membership 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 workweek_memberships top-level JSON key.
Please see our Response Format section for more information.

## Creating a new Workweek Membership

 - [POST /workweek_memberships](https://developer.kantata.com/kantata/specification/workweek-memberships/create-workweek-membership.md): This endpoint returns structured Workweek Membership 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 workweek_memberships top-level JSON key.
Please see our Response Format section for more information.

## Switch to default workweek

 - [PUT /workweek_memberships/standardize_to_default](https://developer.kantata.com/kantata/specification/workweek-memberships/update-user-workweek-to-default.md): Switches the specified user to the account default workweek, starting on the specified date.

This endpoint returns structured Workweek Membership 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 workweek_memberships top-level JSON key.
Please see our Response Format section for more information.

## Fetching a single Workweek Membership

 - [GET /workweek_memberships/{id}](https://developer.kantata.com/kantata/specification/workweek-memberships/get-workweek-membership.md): This endpoint returns structured Workweek Membership 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 workweek_memberships top-level JSON key.
Please see our Response Format section for more information.

## Updating an existing Workweek Membership

 - [PUT /workweek_memberships/{id}](https://developer.kantata.com/kantata/specification/workweek-memberships/update-workweek-membership.md): This endpoint returns structured Workweek Membership 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 workweek_memberships top-level JSON key.
Please see our Response Format section for more information.

## Deleting an existing Workweek Membership

 - [DELETE /workweek_memberships/{id}](https://developer.kantata.com/kantata/specification/workweek-memberships/delete-workweek-membership.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.

