> 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.

# Patch entity classification join

PATCH https://api.aventure.vc/v1/entities/{entityId}/classifications/{classificationId}
Content-Type: application/merge-patch+json

Applies an RFC 7396 merge patch to one join. Omitted fields preserve the existing join state; dormant type+name matches reactivate by default. Use registry when an editorial and standardized join share the same row id.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/entity-classifications-canonical/patch-entity-classification

## 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
- `classificationId` (integer, required) — Entity classification row id

### Query parameters

- `registry` (string, optional) — Optional join registry discriminator when classificationId collides across editorial and standardized join tables.
- `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.
- `overrideGate` (enum, optional) — Gate to override from the prior ProblemDetail resolution.
  - Allowed values: `duplicate`, `entity-publication-requirements`, `square-logo-deletion`, `current-classification-removal`, `news-thumbnail-required`, `news-article-url-fetch`, `news-dated-slug`, `brand-match`, `type-structure-contradiction`
- `overrideReason` (string, optional) — Source-backed reason for overriding the returned gate requirement.

### Body (application/merge-patch+json)

- `inactiveTagOverride` (enum, optional, nullable) — Dormant-value handling when type plus name matches an inactive catalog row. Omitted reactivates the dormant value by default (it becomes current and the write returns a Warning header naming the reactivated tag). Set ATTACH_INACTIVE to attach the dormant value without reactivating it.
  - Allowed values: `REACTIVATE`, `ATTACH_INACTIVE`
- `isCurrent` (boolean, optional, nullable) — Current join row. Create and replace default to true when omitted.
- `isPrimary` (boolean, optional, nullable) — Primary tag within its bucket. Create and replace default to false when omitted.
- `name` (string, optional, nullable) — Source-backed classification value; requires type and is mutually exclusive with tagId and standardizedClassificationId.
- `standardizedClassificationId` (integer, optional, nullable) — Existing standardized classification id from res_classification_ref. Mutually exclusive with tagId and with the type+name pair.
- `tagId` (integer, optional, nullable) — Existing active classification tag id. Mutually exclusive with type and name (and with standardizedClassificationId): provide either tagId alone or the type+name pair, never both.
- `type` (string, optional, nullable) — Writable classification bucket; requires name and is mutually exclusive with tagId and standardizedClassificationId.

## Response

### 200

OK

- `object or object`
  - EntityTag
    - `creatable` (boolean, required)
    - `name` (string, required) — Display name. Capped to the standardized taxonomy storage limit because this shared read contract covers NAICS/SIC/ISIC-style classification labels as well as editorial tags.
    - `writable` (boolean, required)
    - `creatable` (boolean, required) — Whether this bucket permits creating missing values by type plus name.
    - `id` (integer, required) — Classification tag registry id from res_type_ref; use as EntityClassificationMutation.tagId.
    - `name` (string, required) — Name
    - `type` (string, required) — Canonical tag classification type
    - `writable` (boolean, required) — Whether this existing tag can be joined through tagId.
    - `isCurrent` (boolean, optional, nullable)
    - `isPrimary` (boolean, optional, nullable)
    - `bucket` (string, optional, nullable) — Canonical entity-classification bucket key. Use this as EntityClassificationMutation.type when creating by type plus name; `type` remains the registry wire value for tag search and catalog round-trips.
    - `classificationId` (integer, optional, nullable) — Entity classification join row id for update/delete; present on entity classification responses and null on discovery responses.
    - `createdAt` (datetime, optional, nullable) — Registry tag creation timestamp, not the entity join timestamp.
    - `isCurrent` (boolean, optional, nullable) — Current-state flag for this context: registry active flag in discovery, entity join current flag in entity-classification responses.
    - `isPrimary` (boolean, optional, nullable) — Entity join primary flag within its bucket; null on catalog/tag discovery.
    - `slug` (string, optional, nullable) — Slug
    - `updatedAt` (datetime, optional, nullable) — Registry tag update timestamp; join updates return isCurrent/isPrimary but no join updatedAt.
  - StandardizedClassification
    - `creatable` (boolean, required)
    - `name` (string, required) — Display name. Capped to the standardized taxonomy storage limit because this shared read contract covers NAICS/SIC/ISIC-style classification labels as well as editorial tags.
    - `writable` (boolean, required)
    - `category` (string, required) — Standardized category token.
    - `creatable` (boolean, required) — Standardized taxonomy rows are join-existing-only.
    - `id` (integer, required) — Standardized classification registry id from res_classification_ref; use as EntityClassificationMutation.classificationId.
    - `name` (string, required) — Name
    - `writable` (boolean, required) — Existing standardized rows can be joined through classificationId.
    - `isCurrent` (boolean, optional, nullable)
    - `isPrimary` (boolean, optional, nullable)
    - `code` (integer, optional, nullable) — Standardized classification code when present.
    - `createdAt` (datetime, optional, nullable) — Registry row creation timestamp.
    - `entityClassificationId` (integer, optional, nullable) — Entity classification join row id for update/delete; present on entity classification responses and null on discovery responses.
    - `isCurrent` (boolean, optional, nullable) — Standardized reference rows are current by definition.
    - `isPrimary` (boolean, optional, nullable) — Entity join primary flag within this standardized category.
    - `level` (integer, optional, nullable) — Hierarchy level when present.
    - `updatedAt` (datetime, optional, nullable) — Registry row update timestamp.

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "bucket": "string",
  "classificationId": 1,
  "creatable": true,
  "createdAt": "2024-01-15T09:30:00Z",
  "id": 1,
  "isCurrent": true,
  "isPrimary": true,
  "name": "string",
  "slug": "aventure-vc",
  "type": "industry",
  "updatedAt": "2024-01-15T09:30:00Z",
  "writable": true
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/entities/entityId/classifications/1"

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

payload = "{}"
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/merge-patch+json"
}

response = requests.patch(url, data=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/entities/entityId/classifications/1?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: 'PATCH',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/merge-patch+json'
  },
  body: '{}'
};

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/entityId/classifications/1?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("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/merge-patch+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/entityId/classifications/1?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::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/merge-patch+json'
request.body = "{}"

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.patch("https://api.aventure.vc/v1/entities/entityId/classifications/1?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/merge-patch+json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.aventure.vc/v1/entities/entityId/classifications/1?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/merge-patch+json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/entities/entityId/classifications/1?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.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/merge-patch+json");
request.AddParameter("application/merge-patch+json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/merge-patch+json"
]

let postData = NSData(data: "{}".data(using: String.Encoding.utf8)!)

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/entities/entityId/classifications/1?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 = "PATCH"
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()
```