---
title: "Connect the workspace's Jira site"
description: "Admins and owners: the Jira site (cloud_id, one your connection reaches), the projects on Team (projects; none: Team shows nothing from Jira), and the default…"
canonical_url: https://docs.markdrop.in/api/jira/connect-the-workspace-s-jira-site
last_updated: 2026-11-06
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Connect the workspace's Jira site

`PUT https://api.markdrop.in/api/v1/jira/site`

Admins and owners: the Jira site (`cloud_id`, one your connection reaches), the projects on Team (`projects`; none: Team shows nothing from Jira), and the default project and issue type for new issues. Registers the webhooks that keep statuses in step.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 20 per minute per IP address.
- **Guide:** [Jira](https://docs.markdrop.in/integrations/jira)

## Request body

`application/json`, required.

- `workspace_id` (string, required): Matches `^[0-9a-f]{24}$`.
- `cloud_id` (string, required): 1–80 characters.
- `projects` (array of string): Up to 20 items.
- `default_project` (string): Up to 20 characters.
- `default_issue_type` (string): Up to 60 characters.

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X PUT https://api.markdrop.in/api/v1/jira/site \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"workspace_id":"WORKSPACE_ID","cloud_id":"CLOUD_ID"}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/jira/site", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "workspace_id": "WORKSPACE_ID",
    "cloud_id": "CLOUD_ID"
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/jira/site",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"workspace_id": "WORKSPACE_ID", "cloud_id": "CLOUD_ID"},
)
r.raise_for_status()
print(r.json())
```
