---
title: "Toggle the iCal token"
method: POST
path: "/workspaces/{workspace_id}/ical/toggle"
tags: ["ical"]
---

# Toggle the iCal token

`POST /workspaces/{workspace_id}/ical/toggle`

## Request

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

Toggle the iCal token on/off for a given workspace.

## Path parameters

- `workspace_id` integer, required

## Response `200`

Successful operation.

- string

## Other responses

- `400`: Workspace not found
- `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)
