---
title: "Post workspace time entry constraints"
method: POST
path: "/workspaces/{workspace_id}/time_entry_constraints"
tags: ["workspaces/time_entry_constraints"]
---

# Post workspace time entry constraints

`POST /workspaces/{workspace_id}/time_entry_constraints`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/time_entry_constraints`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/time_entry_constraints/post.ts> (a function with typed inputs; its response is checked against the schema)

Post the time entry constraints for a given workspace.

## Path parameters

- `workspace_id` integer, required

## Request body

- ModelsTimeEntryConstraints
  - `description_present` boolean
  - `project_present` boolean
  - `tag_present` boolean
  - `task_present` boolean
  - `time_entry_constraints_enabled` boolean

## Response `200`

Successful operation.

- WorkspacesJSONResult
  - `wid` integer

## Other responses

- `400`: Possible error messages: * Workspace not found * Admin permissions required
- `403`: User does not have access to this resource.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
