Update Subnet
patch
https://api.synapsefi.com
/v3.1/users/:user_id/nodes/:node_id/subnets/:subnet_id
Subnet
Go to Subnet Object Details to see all the required and optional body parameters allowed during node updates. Following are some examples of most common update calls:

Update Subnet Status

HTTP
cURL
Python
JS
PHP
GO
1
PATCH /v3.1/users/5fd7acfd8677040053ad486d/nodes/5fd901bb20b3aa0bc7caee85/subnets/5fe28e3e7dac291e78cb4d74 HTTP/1.1
2
Host: uat-api.synapsefi.com
3
X-SP-USER-IP: 255.127.79.76
4
X-SP-USER: oauth_A0GrzQJKInyljsCtNV37MbeF4ZTYxau9o1WSkdpq|e83cf6ddcf778e37bfe3d48fc78a6502062fc
5
Content-Type: application/json
6
7
{
8
"status":"ACTIVE"
9
}
Copied!
1
curl --location --request PATCH 'https://uat-api.synapsefi.com/v3.1/users/5fd7acfd8677040053ad486d/nodes/5fd901bb20b3aa0bc7caee85/subnets/5fe28e3e7dac291e78cb4d74' \
2
--header 'X-SP-USER-IP: 255.127.79.76' \
3
--header 'X-SP-USER: oauth_A0GrzQJKInyljsCtNV37MbeF4ZTYxau9o1WSkdpq|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{
6
"status":"ACTIVE"
7
}'
Copied!
1
//
Copied!
1
//
Copied!
1
//
Copied!
1
//
Copied!

Set Card Subnet PIN

In the following example the pin is encrypted. Go to Encryption Keys for Subnet to learn more.
HTTP
cURL
Python
JS
PHP
GO
1
PATCH /v3.1/users/5fd7acfd8677040053ad486d/nodes/5fd901bb20b3aa0bc7caee85/subnets/5fe28e3e7dac291e78cb4d74 HTTP/1.1
2
Host: uat-api.synapsefi.com
3
X-SP-USER-IP: 255.127.79.76
4
X-SP-USER: oauth_A0GrzQJKInyljsCtNV37MbeF4ZTYxau9o1WSkdpq|e83cf6ddcf778e37bfe3d48fc78a6502062fc
5
Content-Type: application/json
6
7
{
8
"pin": "VJu4gc4mWlXdBXxtdUnZTIqjK+oEGAJAvbk822A7U3tLtwKJmdhk4WpyJaCxUBe7+LuOasnCpVlOcJbL0okopRrNN2sw4w5XEFhhJ2hbTBsWw2u7hC2SZF58W0zpzJKuWjvdandeGVMXWw17ZHZ2QRDX3jd5Yc6ndtzC2ebPPw/D0d9bOAQYEanD+PBHqI0/O0CHxEqxMobHa/iyLElnQ5/mrB01g9+WIJhOSDCIq2OH1XHSo1upX8KGScxOFOd7XuMvNocWWKP1ILrLrmAPEIRfghInCjPPdJh/9nBTVh3qrUu/3dovCNDN5nUs0ljN/6qp5VxXAI79kYq/8vtTlA=="
9
}
Copied!
1
curl --location --request PATCH 'https://uat-api.synapsefi.com/v3.1/users/5fd7acfd8677040053ad486d/nodes/5fd901bb20b3aa0bc7caee85/subnets/5fe28e3e7dac291e78cb4d74' \
2
--header 'X-SP-USER-IP: 255.127.79.76' \
3
--header 'X-SP-USER: oauth_A0GrzQJKInyljsCtNV37MbeF4ZTYxau9o1WSkdpq|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{
6
"pin": "VJu4gc4mWlXdBXxtdUnZTIqjK+oEGAJAvbk822A7U3tLtwKJmdhk4WpyJaCxUBe7+LuOasnCpVlOcJbL0okopRrNN2sw4w5XEFhhJ2hbTBsWw2u7hC2SZF58W0zpzJKuWjvdandeGVMXWw17ZHZ2QRDX3jd5Yc6ndtzC2ebPPw/D0d9bOAQYEanD+PBHqI0/O0CHxEqxMobHa/iyLElnQ5/mrB01g9+WIJhOSDCIq2OH1XHSo1upX8KGScxOFOd7XuMvNocWWKP1ILrLrmAPEIRfghInCjPPdJh/9nBTVh3qrUu/3dovCNDN5nUs0ljN/6qp5VxXAI79kYq/8vtTlA=="
7
}'
Copied!
1
//
Copied!
1
//
Copied!
1
//
Copied!
1
//
Copied!

Set Card Subnet Preferences

Note: When patching subnet preferences, use USD amounts. When viewing the subnet object using a GET call, the amounts will be shown in cUSD (cents).
HTTP
cURL
Python
JS
PHP
GO
1
PATCH /v3.1/users/5fd7acfd8677040053ad486d/nodes/5fd901bb20b3aa0bc7caee85/subnets/5fe28e3e7dac291e78cb4d74 HTTP/1.1
2
Host: uat-api.synapsefi.com
3
X-SP-USER-IP: 255.127.79.76
4
X-SP-USER: oauth_A0GrzQJKInyljsCtNV37MbeF4ZTYxau9o1WSkdpq|e83cf6ddcf778e37bfe3d48fc78a6502062fc
5
Content-Type: application/json
6
7
{
8
"preferences": {
9
"allow_foreign_transactions":false,
10
"daily_transaction_limit":2000,
11
"daily_cash_limit":500
12
}
13
}
Copied!
1
curl --location --request PATCH 'https://uat-api.synapsefi.com/v3.1/users/5fd7acfd8677040053ad486d/nodes/5fd901bb20b3aa0bc7caee85/subnets/5fe28e3e7dac291e78cb4d74' \
2
--header 'X-SP-USER-IP: 255.127.79.76' \
3
--header 'X-SP-USER: oauth_A0GrzQJKInyljsCtNV37MbeF4ZTYxau9o1WSkdpq|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{
6
"preferences": {
7
"allow_foreign_transactions":false,
8
"daily_transaction_limit":99,
9
"daily_cash_limit":99.99
10
}
11
}'
Copied!
1
//
Copied!
1
//
Copied!
1
//
Copied!
1
//
Copied!
Last modified 1mo ago