---
title: "Creating a new Workweek"
method: POST
path: "/workweeks"
tags: ["Workweeks"]
---

# Creating a new Workweek

`POST /workweeks`

## Request

- Base URL: `https://api.mavenlink.com/api/v1`
- URL: `https://api.mavenlink.com/api/v1/workweeks`
- Auth: none declared

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/Response-Format) section for more information.

## Query parameters

- `enable_workweeks` boolean
- `include` string

## Request body

- object
  - `workweek` object
    - `start_date` string, date: The start date of the workweek (must be a Sunday). The date must be in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format.
    - `sunday_minutes` integer: The number of workable minutes on Sunday.
    - `monday_minutes` integer: The number of workable minutes on Monday.
    - `tuesday_minutes` integer: The number of workable minutes on Tuesday.
    - `wednesday_minutes` integer: The number of workable minutes on Wednesday.
    - `thursday_minutes` integer: The number of workable minutes on Thursday.
    - `friday_minutes` integer: The number of workable minutes on Friday.
    - `saturday_minutes` integer: The number of workable minutes on Saturday.

## Response `200`

Workweek has been created.

- object
  - `count` integer
  - `meta` object
    - `count` integer
    - `page_count` integer
    - `page_number` integer
    - `page_size` integer
  - `results` object[]
    - `key` string
    - `id` string
  - `workweeks` object
  - `workweek_memberships` object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized request
- `403`: Forbidden request
- `404`: Page Not Found
- `422`: Unprocessable Entity
- `503`: Service is unavailable

---

[API](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation.md) - [All operations](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/revisions/9d4ebed2fa98?raw)
