> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.athenaintel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.athenaintel.com/_mcp/server.

# Hold a task for a person

PUT https://api.athenaintel.com/api/v0/tasks/{asset_id}/hold
Content-Type: application/json

Hold an open task for a person: say in one line what it waits for (a question, an approval, or that the work failed). A held task stays open but is not ready, and nobody can claim it until the hold is lifted; the tasks that wait on it keep waiting. Holding ends any claim on the task and tells its assignee and followers. Holding a task already held replaces its hold. Needs edit access. A credential acting as an agent or an automation holds only a task it holds the claim on, or that nobody does.

Reference: https://docs.athenaintel.com/api-reference/tasks/hold

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header

## Request

### Path parameters

- `asset_id` (string, required) — The task's asset id.

### Body (application/json)

This endpoint expects a HoldTaskRequestIn.

- `reason` (string, required) — What the task waits for, in one line (at most 500 characters): the question, or what is needed. Everyone who can open the task reads it.
- `kind` (string, optional, nullable) — What sort of wait it is, in one short lowercase word: needs_input (when left out), awaiting_approval, failed (the worker gave up; what waits on the task keeps waiting), or a word of your own.
- `worker` (string, optional, nullable) — Your own name for the worker that is calling (1 to 64 letters, digits, -, _ or .), for when several workers share one API key. A claim made with a name is that worker's: another worker of the same caller is refused the task while the claim is live, and only the same name renews it or gives it back. Left out, the call is the caller's own, as from the app. The name is yours to choose and grants nothing.

## Response

### 200

The task, held.

- `assignee` (TaskAssigneeOut, required, nullable) — Who it is for, or null for nobody.
- `blocked_by` (list of string, required) — The ids of the tasks that must be done before this one: those the caller can open.
- `can_edit` (boolean, required, nullable) — Whether the caller may change it; null in a list.
- `claim` (TaskClaimOut, required, nullable) — Who is working on it now; null when nobody is, and once the lease ran out.
- `completed_at` (datetime, required, nullable) — When it was marked done.
- `completed_by_ref` (string, required, nullable) — Who marked it done.
- `completion_note` (string, required, nullable) — What the work produced, left when it was marked done.
- `completion_reason` (enum, required, nullable) — Why it is done (completed or not_planned); null while open.
  - Allowed values: `completed`, `not_planned`
- `created_at` (datetime, required, nullable)
- `created_by` (string, required, nullable) — The user who created it.
- `description` (string, required, nullable) — Markdown.
- `due_date` (string, required, nullable) — YYYY-MM-DD, or null.
- `due_time` (string, required, nullable) — HH:MM (24-hour), or null.
- `due_time_zone` (string, required, nullable) — The IANA time zone of due_time.
- `external_refs` (list of TaskExternalRefOut, required) — The items kept elsewhere it is linked to (a pull request, an issue, a thread), each with what its system last said.
- `hidden_blockers` (integer, required) — How many more tasks it waits on that the caller can't open.
- `hold` (TaskHoldOut, required, nullable) — Why it waits on a person; null when it doesn't. A held task is not ready and can't be claimed until the hold is lifted.
- `id` (string, required) — The task's asset id.
- `is_archived` (boolean, required) — Whether it is in the trash.
- `is_blocked` (boolean, required) — Whether a task it waits on is still open, counting the ones the caller can't open.
- `is_ready` (boolean, required) — Whether it can be worked on now: open, not in the trash, nobody working on it, not held for a person and waiting on no open task. It says nothing of who may take it: a task assigned to someone is theirs alone to claim.
- `labels` (list of TaskLabelOut, required)
- `links` (list of TaskLinkOut, required) — The records it is about, read as the caller. Always empty in a list.
- `number` (integer, required, nullable) — Its number in its workspace (1, 2, 3, …), shown as T-\<n>; null for a task written before tasks were numbered.
- `parent` (TaskParentOut, required, nullable) — The task it is a sub-task of, read through that task's own gate; null when it is no sub-task.
- `priority` (enum, required)
  - Allowed values: `none`, `low`, `medium`, `high`, `urgent`
- `status` (enum, required)
  - Allowed values: `open`, `done`
- `subtask_progress` (TaskSubtaskProgressOut, required) — How many of its sub-tasks the caller can open are done, of how many.
- `title` (string, required)
- `updated_at` (datetime, required, nullable)
- `workspace_id` (string, required)

## Errors

### 400 Bad Request Error

The task is done, the reason is empty, or the kind is not one short lowercase word.

- `any`

### 401 Unauthorized Error

The API key or token is missing or not valid.

- `any`

### 403 Forbidden Error

The caller can open the task but may not hold it: no edit access, it is in the trash, or the caller is a credential acting as an agent or an automation and someone else is working on the task.

- `any`

### 404 Not Found Error

No task the caller can open has this id: no asset has it, it is not a task, or the caller may not open it. All are answered alike.

- `any`

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 503 Service Unavailable Error

Tasks are not ready on this deployment yet (its database update has not run), or the document the task's description lives in could not be reached. Nothing was changed.

- `any`

## Types

### TaskAssigneeOut

Who a task is assigned to: a person or an agent.

- `display_name` (string, required, nullable) — Their name, when the caller may see it (an agent's only when they can open it).
- `kind` (enum, required) — person or agent.
  - Allowed values: `person`, `agent`
- `ref` (string, required) — user_… for a person, agent_asset_… for an agent.

### TaskClaimOut

Who is working on a task now, and until when. A claim is live only while the task is open and its lease has not run out; after that the task reads as nobody's, at once.

- `claimed_by` (TaskAssigneeOut, required) — Who holds it: a person, or an agent acting as itself.
- `expires_at` (datetime, required) — When the lease runs out unless its holder renews it.
- `is_yours` (boolean, required) — Whether the claim is the caller's own to renew or give back: held by the caller and, when the request names a worker, made by that worker (or with no worker named). The worker that made a claim is never shown.

### TaskExternalRefOut

An item kept elsewhere that a task is linked to. A pull request, an issue, a thread. What its system last said of it is null until that system has spoken.

- `checks_failed` (integer, required, nullable) — How many of its checks failed.
- `checks_passed` (integer, required, nullable) — How many of its checks passed.
- `id` (string, required) — The link's own id.
- `label` (string, required) — A short name for the item, such as acme/app#12.
- `lifecycle` (string, required, nullable) — Where the item stands there: open, draft, merged or closed.
- `provider` (string, required) — The system that keeps the item, such as github.
- `relation` (string, required) — tracks, mirrors or conversation.
- `review_verdict` (string, required, nullable) — Its reviewers' overall verdict, when it has reviews.
- `updated_at` (datetime, required, nullable) — When the link or what its system said of it last changed.
- `url` (string, required) — The item's address.

### TaskHoldOut

Why a task waits on a person: it is open, not ready, and nobody can claim it.

- `held_at` (datetime, required) — When it was held.
- `held_by` (TaskAssigneeOut, required, nullable) — Who held it (a person or an agent).
- `kind` (string, required) — What sort of wait it is, in one short word: needs_input, awaiting_approval, failed (a worker gave it up), or the holder's own.
- `reason` (string, required) — What the task waits for, in one line.

### TaskLabelOut

A label on a task: its name, color and who applied it.

- `applied_at` (string, required) — When it was applied (ISO 8601).
- `applied_by_ref` (string, required) — Principal ref of who applied it.
- `color` (string, required, nullable) — #RRGGBB, or null.
- `name` (string, required)

### TaskLinkOut

A record a task is about, read as the caller.

- `detail` (string, required, nullable) — Its asset or object type, read as the caller.
- `id` (string, required, nullable) — The asset or object id; null when unreadable.
- `readable` (boolean, required) — Whether the caller can open it. One they can't shows its kind only: no id, URL or title.
- `referenced` (string, required) — asset, ontology_object or external_url.
- `title` (string, required, nullable) — Its title, read as the caller.
- `url` (string, required, nullable) — The web page's URL; null when unreadable.

### TaskParentOut

The task a sub-task belongs to, read through its own gate.

- `id` (string, required, nullable) — Its asset id; null when the caller can't open it.
- `number` (integer, required, nullable) — Its number (T-\<n>); null when the caller can't open it.
- `readable` (boolean, required) — Whether the caller can open it.
- `status` (enum, required, nullable) — open or done; null when the caller can't open it.
  - Allowed values: `open`, `done`
- `title` (string, required, nullable) — Its title; null when the caller can't open it.

### TaskSubtaskProgressOut

How far along a task's sub-tasks are, among those the caller can open.

- `done` (integer, required) — How many of them are done.
- `total` (integer, required) — How many there are.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Request**

```json
{
  "reason": "Which of the two decks goes to Mayfield?",
  "kind": "needs_input"
}
```

**Response**

```json
{
  "assignee": {
    "display_name": "Ada Lovelace",
    "kind": "person",
    "ref": "user_123"
  },
  "blocked_by": [],
  "can_edit": true,
  "claim": {
    "claimed_by": {
      "display_name": "Ada Lovelace",
      "kind": "person",
      "ref": "user_123"
    },
    "expires_at": "2026-11-11T15:30:00+00:00",
    "is_yours": true
  },
  "completed_at": "2024-01-15T09:30:00Z",
  "completed_by_ref": "string",
  "completion_note": "string",
  "completion_reason": "completed",
  "created_at": "2026-11-11T15:00:00+00:00",
  "created_by": "user_123",
  "description": "string",
  "due_date": "2026-11-13",
  "due_time": "15:00",
  "due_time_zone": "America/New_York",
  "external_refs": [],
  "hidden_blockers": 0,
  "hold": {
    "held_at": "2024-01-15T09:30:00Z",
    "held_by": {
      "display_name": "string",
      "kind": "person",
      "ref": "string"
    },
    "kind": "string",
    "reason": "string"
  },
  "id": "asset_7c1e5b2a-4f3d-4e8a-9b6c-1d2e3f4a5b6c",
  "is_archived": false,
  "is_blocked": false,
  "is_ready": false,
  "labels": [
    {
      "applied_at": "2026-11-11T15:00:00+00:00",
      "applied_by_ref": "user_123",
      "color": "string",
      "name": "Investor"
    }
  ],
  "links": [
    {
      "detail": "string",
      "id": "string",
      "readable": true,
      "referenced": "external_url",
      "title": "example.com",
      "url": "https://example.com"
    }
  ],
  "number": 12,
  "parent": {
    "id": "string",
    "number": 1,
    "readable": true,
    "status": "open",
    "title": "string"
  },
  "priority": "high",
  "status": "open",
  "subtask_progress": {
    "done": 1,
    "total": 3
  },
  "title": "Send the deck to Mayfield",
  "updated_at": "2026-11-11T15:00:00+00:00",
  "workspace_id": "ws_abc123-def456"
}
```

**SDK Code**

```python
import requests

url = "https://api.athenaintel.com/api/v0/tasks/asset_id/hold"

payload = {
    "reason": "Which of the two decks goes to Mayfield?",
    "kind": "needs_input"
}
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/tasks/asset_id/hold';
const options = {
  method: 'PUT',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"reason":"Which of the two decks goes to Mayfield?","kind":"needs_input"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.athenaintel.com/api/v0/tasks/asset_id/hold"

	payload := strings.NewReader("{\n  \"reason\": \"Which of the two decks goes to Mayfield?\",\n  \"kind\": \"needs_input\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.athenaintel.com/api/v0/tasks/asset_id/hold")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"reason\": \"Which of the two decks goes to Mayfield?\",\n  \"kind\": \"needs_input\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.athenaintel.com/api/v0/tasks/asset_id/hold")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"reason\": \"Which of the two decks goes to Mayfield?\",\n  \"kind\": \"needs_input\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.athenaintel.com/api/v0/tasks/asset_id/hold', [
  'body' => '{
  "reason": "Which of the two decks goes to Mayfield?",
  "kind": "needs_input"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/tasks/asset_id/hold");
var request = new RestRequest(Method.PUT);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"reason\": \"Which of the two decks goes to Mayfield?\",\n  \"kind\": \"needs_input\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "reason": "Which of the two decks goes to Mayfield?",
  "kind": "needs_input"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/tasks/asset_id/hold")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```