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

# Replace research detail

PUT https://api.aventure.vc/v1/entities/{entityId}/research/details/{detailId}
Content-Type: application/json

Replaces a specific catalog-governed research detail row for an entity. Use replace to correct a row believed wrong, not to refresh time-series history; create a new row for a new dated observation. Use entities relationships join for acceleratorParticipant rows.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/entity-research/replace-research-detail

## Authentication

- `Authorization` header (bearer token, required) — User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key
- `X-API-Key` header (required) — Admin API key for system-to-system write operations

## Request

### Path parameters

- `entityId` (string, required) — Canonical entity UUID.
- `detailId` (integer, required) — Research detail id.

### Query parameters

- `sourceType` (enum, required) — Write provenance source type.
  - Allowed values: `requestChangeForm`, `newsArticle`, `blogArticle`, `firstPartyWebsite`, `relatedPartyWebsite`, `thirdPartyWebsite`, `llm`, `aventureStaff`
- `sourceDetail` (string, required) — Source detail or reviewer reference for the write.
- `sourceProvider` (string, optional) — Provider name for provider-native IDs or slugs.
- `sourceProviderId` (string, optional) — Provider-native source ID.
- `sourceProviderSlug` (string, optional) — Provider-native source slug.
- `actorType` (enum, optional) — Actor type; inferred as agent when agentChassis and agentModel are supplied, or as employee from an authenticated user JWT session.
  - Allowed values: `agent`, `employee`
- `agentChassis` (string, optional) — Agent chassis token for agent-authored writes.
- `agentModel` (string, optional) — Agent model id for agent-authored writes.

### Body (application/json)

- `typeResearchDetail` (string, required) — Research detail type token. Run GET /v1/entities/research/details/types (CLI: entities research details types list) for the token inventory and each token's value shape.
- `asOfDate` (datetime, optional, nullable) — Observation timestamp for dated detail shapes.
- `creator` (string, optional, nullable) — Creator identifier for the research detail.
- `dataConfidence` (enum, optional, nullable) — Confidence tier for the research detail: low, medium, or high. Omitting it persists NULL — no default is fabricated.
  - Allowed values: `low`, `medium`, `high`
- `discreteValue` (double, optional, nullable) — Numeric value for monetary, ratio, score, count, and growth-rate details. numericGrowthRate uses percentage points: send 80 for 80%, not 0.8; use the selected detail type's range.
- `source` (string, optional, nullable) — Legacy source display text. Prefer provenance query parameters.
- `textValue` (string, optional, nullable) — Text value for free-text or employee-range details. Generic research details reject acceleratorParticipation writes; use entities relationships join. Write '$' literally in currency text — escaped forms such as '\$1M' are rejected as shell artifacts; monetary amounts belong in discreteValue, not textValue.
- `valueResearchDetail` (string, optional, nullable) — String value for token, currency, period, date-interval, or target-duration shapes. monetaryFlow packs "CURRENCY|PERIOD" (e.g. "USD|P1Y"); monetaryFlowOverPeriod packs "CURRENCY|START/END" as an ISO-8601 date interval (e.g. "USD|2021-01-01/2025-12-31"), with asOfDate holding the separate report date.

## Response

### 200

OK

- `entityId` (string, required) — Canonical entity UUID
- `id` (integer, required)
- `typeResearchDetail` (string, required)
- `valueType` (enum, required) — Output kind for governed research detail values
  - Allowed values: `text`, `numeric`, `monetary`, `percentage`, `date`
- `asOfDate` (datetime, optional, nullable)
- `createdAt` (datetime, optional, nullable)
- `creator` (string, optional, nullable)
- `dataConfidence` (enum, optional, nullable) — Confidence tier stored verbatim in res_entity_detail.data_confidence.
  - Allowed values: `low`, `medium`, `high`
- `derivedRange` (object, optional, nullable) — Read-only range derived only for targetDateAbsolute detail rows
  - `asOfDate` (datetime, required) — Observation timestamp from the source detail row
  - `bucket` (enum, required) — Derived bucket using inclusive 0, 3, 6, 12, and 24 month boundaries
    - Allowed values: `pastDue`, `withinThreeMonths`, `threeToSixMonths`, `sixToTwelveMonths`, `twelveToTwentyFourMonths`, `beyondTwoYears`
  - `monthsFromNow` (integer, required) — Whole months from now() to targetDate
  - `targetDate` (datetime, required) — Absolute target date stored for a targetDateAbsolute detail row
- `discreteValue` (double, optional, nullable)
- `textValue` (string, optional, nullable)
- `updatedAt` (datetime, optional, nullable)
- `valueResearchDetail` (string, optional, nullable)

## Examples

**Request**

```json
{
  "typeResearchDetail": "fundraisingNeeds"
}
```

**Response**

```json
{
  "entityId": "string",
  "id": 1,
  "typeResearchDetail": "string",
  "valueType": "text",
  "asOfDate": "2024-01-15T09:30:00Z",
  "createdAt": "2024-01-15T09:30:00Z",
  "creator": "string",
  "dataConfidence": "low",
  "derivedRange": {
    "asOfDate": "2024-01-15T09:30:00Z",
    "bucket": "pastDue",
    "monthsFromNow": 1,
    "targetDate": "2024-01-15T09:30:00Z"
  },
  "discreteValue": 1.1,
  "textValue": "string",
  "updatedAt": "2024-01-15T09:30:00Z",
  "valueResearchDetail": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444"

querystring = {"actorType":"agent","agentChassis":"codex-cli","sourceDetail":"aventure.vc","sourceProvider":"TechCrunch","sourceProviderId":"tc-2026-05-20-example-round","sourceProviderSlug":"example-round","sourceType":"requestChangeForm"}

payload = { "typeResearchDetail": "fundraisingNeeds" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"typeResearchDetail":"fundraisingNeeds"}'
};

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.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm"

	payload := strings.NewReader("{\n  \"typeResearchDetail\": \"fundraisingNeeds\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm")

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"typeResearchDetail\": \"fundraisingNeeds\"\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.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"typeResearchDetail\": \"fundraisingNeeds\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm', [
  'body' => '{
  "typeResearchDetail": "fundraisingNeeds"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"typeResearchDetail\": \"fundraisingNeeds\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["typeResearchDetail": "fundraisingNeeds"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/entities/04e2bf9c-a100-72ad-83ff-ba69c647b30b/research/details/6444?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm")! 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()
```