Update Session Data
curl --request PATCH \
--url https://identity.contra.id/v1/sessions/{session_id}/dataimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/data"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://identity.contra.id/v1/sessions/{session_id}/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://identity.contra.id/v1/sessions/{session_id}/data"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://identity.contra.id/v1/sessions/{session_id}/data")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodyUser and Business Verifications
Update Session Data
Patch extracted KYC or Proof-of-Address data on a session — corrections, manual overrides, redactions.
PATCH
/
v1
/
sessions
/
{session_id}
/
data
Update Session Data
curl --request PATCH \
--url https://identity.contra.id/v1/sessions/{session_id}/dataimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/data"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://identity.contra.id/v1/sessions/{session_id}/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://identity.contra.id/v1/sessions/{session_id}/data"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://identity.contra.id/v1/sessions/{session_id}/data")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodyUse this when an OCR field is wrong, a name needs normalisation, or a compliance officer is correcting transcribed data.
All fields are optional; send only what changes.
Request
curl -X PATCH https://identity.contra.id/v1/sessions/$SID/data \
-H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \
-d '{
"first_name": "Mikayla",
"last_name": "Halvorson",
"date_of_birth": "1966-10-02",
"country": "GB",
"document_number":"AB123456"
}'
Response · 200
{
"session_id": "sess_b3f1c2a4",
"data_updated": true,
"audit_entry": "rev_a8f2…"
}
Updating session data is audited and on-chain anchored in the next hourly batch. The original Smile/Didit-extracted values are preserved alongside the override.
⌘I