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

# Update an approved KYB request

PATCH https://api.trevex.io/apis/email/update_claim/
Content-Type: application/json

Update company data after a KYB request has been approved. Only approved
requests can be updated. At least one updatable field (besides `request_id`)
must be provided.


Reference: https://docs.trevex.io/api-reference/kyb-requests/update-claim

## Authentication

- `Authorization` header (required) — Pass your API key as `Api-Key <your_api_key>` in the `Authorization` header. API keys are issued per Project by the TREVEX team.

## Servers

- `https://api.trevex.io` (Production, default)
- `https://testapi.trevex.io` (Staging)

## Request

### Body (application/json)

This endpoint expects an UpdateClaimRequest.

- `request_id` (string, required) — The approved KYB request's ID.
- `registered_company_name` (string, optional)
- `trade_license` (string, optional)
- `license_no` (string, optional)
- `registration_body` (string, optional)
- `website` (string, optional)
- `number_of_employees` (string, optional)
- `twitter` (string, optional)
- `facebook` (string, optional)
- `instagram` (string, optional)
- `linkedin` (string, optional)

## Response

### 200

Company data updated.

- `statusCode` (integer, optional)
- `message` (string, optional)
- `trevex_company_id` (string, optional)
- `updated_fields` (list of string, optional)

## Errors

### 400 Bad Request Error

KYB request is not in approved status, or no updatable fields provided.

- `statusCode` (integer, optional)
- `message` (string, optional)

### 404 Not Found Error

KYB request not found, or no company record linked.

- `statusCode` (integer, optional)
- `message` (string, optional)

## Examples

**Request**

```json
{
  "request_id": "kyb-req-7890abc123def"
}
```

**Response**

```json
{
  "statusCode": 200,
  "message": "Company data updated successfully.",
  "trevex_company_id": "comp-4567xyz890",
  "updated_fields": [
    "registered_company_name",
    "website"
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.trevex.io/apis/email/update_claim/"

payload = { "request_id": "kyb-req-7890abc123def" }
headers = {
    "Authorization": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.trevex.io/apis/email/update_claim/';
const options = {
  method: 'PATCH',
  headers: {Authorization: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"request_id":"kyb-req-7890abc123def"}'
};

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.trevex.io/apis/email/update_claim/"

	payload := strings.NewReader("{\n  \"request_id\": \"kyb-req-7890abc123def\"\n}")

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

	req.Header.Add("Authorization", "<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.trevex.io/apis/email/update_claim/")

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

request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"request_id\": \"kyb-req-7890abc123def\"\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.patch("https://api.trevex.io/apis/email/update_claim/")
  .header("Authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"request_id\": \"kyb-req-7890abc123def\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.trevex.io/apis/email/update_claim/', [
  'body' => '{
  "request_id": "kyb-req-7890abc123def"
}',
  'headers' => [
    'Authorization' => '<apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.trevex.io/apis/email/update_claim/");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"request_id\": \"kyb-req-7890abc123def\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["request_id": "kyb-req-7890abc123def"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.trevex.io/apis/email/update_claim/")! 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()
```