Update Link Record §
Last updated
curl -X POST "$URL/api/v1/linkedrecords/$LOC/update?encode=SHA256(01-02T13.14.15)|Base64" \
-H "x-api-key: $KEY" \
-H "accept: text/plain" \
-H "Content-Type: application/octet-stream" \
--data-binary "hello world"const response = await fetch('${url}/api/v1/linkedrecords/${loc}/update?encode=SHA256(01-02T13.14.15)|Base64', {
method: 'POST',
headers: {
'x-api-key': '${key}',
'accept': 'text/plain',
'Content-Type': 'application/octet-stream'
},
body: 'hello world'
});{
"txId": "7a22816fb63eff1....2377922ab58bdc2c2c13",
"encoding" : [
{ "content-type": "…|Base64", "output" : "GDa1G3wEWsx4....y3RufuSXsARdiK8Wg=" }
]
...
}curl -X POST $URL/api/v1/linkedrecords/$LOC/update \
-H "x-api-key: $KEY" \
-H "accept: text/plain" \
-H "Content-Type: application/octet-stream" \
--data-binary "hello world"const response = await fetch('${url}/api/v1/linkedrecords/${loc}/update', {
method: 'POST',
headers: {
'x-api-key': '${key}',
'accept': 'text/plain',
'Content-Type': 'application/octet-stream'
},
body: 'hello world'
});{
"txId": "4674e3fc20a708dc....c32b37c76b724db48",
...
}LOC1=$LOC
LOC=4674e3fc20a708dc....c32b37c76b724db848const data = await response.json();
const loc1 = data.txId;