---
title: "Assign a Jira issue"
description: "Assigns the issue to a person (account_id, from the assignable list) or unassigns it (null), as you."
canonical_url: https://docs.markdrop.in/api/jira/assign-a-jira-issue
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Assign a Jira issue

`PUT https://api.markdrop.in/api/v1/jira/issue/{key}/assignee`

Assigns the issue to a person (`account_id`, from the assignable list) or unassigns it (`null`), as you.

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

## Path parameters

- `key` (string, required)

## Request body

`application/json`, required.

- `site` (string): Matches `^[A-Za-z0-9:/._-]{3,200}$`.
- `slug` (string): Matches `^[A-Za-z0-9_-]{1,64}$`.
- `account_id` (string): Up to 128 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/issue/KEY/assignee \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**JavaScript**

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

**Python**

```python
import os

import requests

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