curl --request PATCH \
--url https://api.enterprise.sandbox.uphold.com/on-off-ramp/{entity}/{entityId}/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
[
{
"op": "add",
"path": "/status",
"value": "active"
}
]
'{
"metadata": {
"externalId": 123
}
}Metadata
Update metadata
Update existing metadata for a given entity.
PATCH
/
on-off-ramp
/
{entity}
/
{entityId}
/
metadata
curl --request PATCH \
--url https://api.enterprise.sandbox.uphold.com/on-off-ramp/{entity}/{entityId}/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
[
{
"op": "add",
"path": "/status",
"value": "active"
}
]
'{
"metadata": {
"externalId": 123
}
}
Update metadata modifies specific properties using JSON Patch operations. Unlike Set metadata, this enables partial updates without replacing the entire object.
Supported operations: add, replace, remove, move, copy, and test.
The response includes an
ETag header for the new version. Use If-Match to prevent conflicting concurrent modifications.
Operations are applied sequentially and validated to ensure metadata remains valid.
Headers
Path Parameters
Body
application/json-patch+json
Was this page helpful?