Banking as a Service
Update Entity
Update an existing BaaS entity’s details
PATCH
/
v1
/
baas
/
entities
/
{entity_id}
Update Entity
curl --request PATCH \
--url https://api-sandbox.y.uno/v1/baas/entities/{entity_id} \
--header 'Content-Type: application/json' \
--data '
{
"phone": {},
"address": {},
"entity_detail": {}
}
'import requests
url = "https://api-sandbox.y.uno/v1/baas/entities/{entity_id}"
payload = {
"phone": {},
"address": {},
"entity_detail": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone: {}, address: {}, entity_detail: {}})
};
fetch('https://api-sandbox.y.uno/v1/baas/entities/{entity_id}', 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://api-sandbox.y.uno/v1/baas/entities/{entity_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'phone' => [
],
'address' => [
],
'entity_detail' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.y.uno/v1/baas/entities/{entity_id}"
payload := strings.NewReader("{\n \"phone\": {},\n \"address\": {},\n \"entity_detail\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api-sandbox.y.uno/v1/baas/entities/{entity_id}")
.header("Content-Type", "application/json")
.body("{\n \"phone\": {},\n \"address\": {},\n \"entity_detail\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/baas/entities/{entity_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone\": {},\n \"address\": {},\n \"entity_detail\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "ent_660e8400-e29b-41d4-a716-446655440000",
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"merchant_entity_id": "merchant_user_12345",
"national_entity": "INDIVIDUAL",
"phone": {
"country_code": "+1",
"number": "2025559999"
},
"address": {
"address_line_1": "456 Oak Ave",
"city": "San Francisco",
"state": "CA",
"zip_code": "94103",
"country": "US"
},
"entity_detail": {
"individual": {
"first_name": "Dee",
"last_name": "Hock",
"email": "john.updated@example.com",
"date_of_birth": "1990-01-15"
}
},
"created_at": "2026-02-01T10:00:00Z",
"updated_at": "2026-02-01T12:30:00Z"
}
{
"code": "ENTITY_NOT_FOUND",
"messages": ["Entity not found"],
"http_code": 404
}
Path parameters
string
required
The unique identifier of the entity to update.
Body
All fields are optional. Only include the fields you want to update.object
Updated phone details with
country_code and number.object
Updated address details.
object
Updated individual or business details.
Response
Returns the updated entity object with the same schema as Get Entity.{
"id": "ent_660e8400-e29b-41d4-a716-446655440000",
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"merchant_entity_id": "merchant_user_12345",
"national_entity": "INDIVIDUAL",
"phone": {
"country_code": "+1",
"number": "2025559999"
},
"address": {
"address_line_1": "456 Oak Ave",
"city": "San Francisco",
"state": "CA",
"zip_code": "94103",
"country": "US"
},
"entity_detail": {
"individual": {
"first_name": "Dee",
"last_name": "Hock",
"email": "john.updated@example.com",
"date_of_birth": "1990-01-15"
}
},
"created_at": "2026-02-01T10:00:00Z",
"updated_at": "2026-02-01T12:30:00Z"
}
{
"code": "ENTITY_NOT_FOUND",
"messages": ["Entity not found"],
"http_code": 404
}
⌘I
Update Entity
curl --request PATCH \
--url https://api-sandbox.y.uno/v1/baas/entities/{entity_id} \
--header 'Content-Type: application/json' \
--data '
{
"phone": {},
"address": {},
"entity_detail": {}
}
'import requests
url = "https://api-sandbox.y.uno/v1/baas/entities/{entity_id}"
payload = {
"phone": {},
"address": {},
"entity_detail": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone: {}, address: {}, entity_detail: {}})
};
fetch('https://api-sandbox.y.uno/v1/baas/entities/{entity_id}', 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://api-sandbox.y.uno/v1/baas/entities/{entity_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'phone' => [
],
'address' => [
],
'entity_detail' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.y.uno/v1/baas/entities/{entity_id}"
payload := strings.NewReader("{\n \"phone\": {},\n \"address\": {},\n \"entity_detail\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api-sandbox.y.uno/v1/baas/entities/{entity_id}")
.header("Content-Type", "application/json")
.body("{\n \"phone\": {},\n \"address\": {},\n \"entity_detail\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/baas/entities/{entity_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone\": {},\n \"address\": {},\n \"entity_detail\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "ent_660e8400-e29b-41d4-a716-446655440000",
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"merchant_entity_id": "merchant_user_12345",
"national_entity": "INDIVIDUAL",
"phone": {
"country_code": "+1",
"number": "2025559999"
},
"address": {
"address_line_1": "456 Oak Ave",
"city": "San Francisco",
"state": "CA",
"zip_code": "94103",
"country": "US"
},
"entity_detail": {
"individual": {
"first_name": "Dee",
"last_name": "Hock",
"email": "john.updated@example.com",
"date_of_birth": "1990-01-15"
}
},
"created_at": "2026-02-01T10:00:00Z",
"updated_at": "2026-02-01T12:30:00Z"
}
{
"code": "ENTITY_NOT_FOUND",
"messages": ["Entity not found"],
"http_code": 404
}