curl --request PATCH \
--url https://sg.sandbox.api.reap.global/virtual-assets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"name": "<string>",
"httpEndpoint": "<string>"
}
'const options = {
method: 'PATCH',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', httpEndpoint: '<string>'})
};
fetch('https://sg.sandbox.api.reap.global/virtual-assets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/virtual-assets/{id}"
payload = {
"name": "<string>",
"httpEndpoint": "<string>"
}
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"name": "<string>",
"decimals": 0,
"status": "ACTIVE",
"rateSource": "FIXED",
"httpEndpoint": "<string>",
"currentRate": 1,
"currentRateUpdatedAt": "<string>",
"allocated": {
"amount": "<string>",
"value": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "INVALID_RATE_SOURCE",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "VIRTUAL_ASSET_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Update virtual asset
Update mutable fields (name, httpEndpoint). To disable the asset, use the dedicated POST /:id/disable endpoint.
curl --request PATCH \
--url https://sg.sandbox.api.reap.global/virtual-assets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"name": "<string>",
"httpEndpoint": "<string>"
}
'const options = {
method: 'PATCH',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', httpEndpoint: '<string>'})
};
fetch('https://sg.sandbox.api.reap.global/virtual-assets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/virtual-assets/{id}"
payload = {
"name": "<string>",
"httpEndpoint": "<string>"
}
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"name": "<string>",
"decimals": 0,
"status": "ACTIVE",
"rateSource": "FIXED",
"httpEndpoint": "<string>",
"currentRate": 1,
"currentRateUpdatedAt": "<string>",
"allocated": {
"amount": "<string>",
"value": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "INVALID_RATE_SOURCE",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "VIRTUAL_ASSET_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
2025-02-14 "2025-02-14"
Path Parameters
Virtual asset ID
Body
Response
Virtual asset definition
Unique virtual asset identifier
Virtual asset symbol
Display name
Number of decimal places for amounts
-9007199254740991 <= x <= 9007199254740991Lifecycle status. Disabled assets are excluded from balance computation.
ACTIVE, DISABLED "ACTIVE"
How the exchange rate (in the project billing currency) is determined for this virtual asset.
FIXED, HTTP "FIXED"
Rate endpoint URL. Present only for HTTP rate source.
Latest known rate per unit, in the project billing currency. This is the rate a SETTLEMENT posting made now would be priced at. Null if no rate snapshot exists yet.
x > 01
ISO 8601 timestamp of the latest rate snapshot. Null when currentRate is null.
Total amount of this virtual asset allocated across all accounts in the project.
Show child attributes
Show child attributes
ISO 8601 creation timestamp
ISO 8601 last update timestamp