const response = await fetch("https://algapsa.com/api/v1/storage/namespaces/{namespace}/records", {
method: "POST",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"items": [
{
"key": "x",
"value": null,
"metadata": {},
"ttlSeconds": 1,
"ifRevision": 0,
"schemaVersion": 1
}
]
})
});
const data = await response.json();