expiration_ttl
is used and expiration
is ignored. The entire request size must be 100 megabytes or less.[
{
"base64": false,
"expiration": 1578435000,
"expiration_ttl": 300,
"key": "My-Key",
"metadata": {
"someMetadataKey": "someMetadataValue"
},
"value": "Some string"
}
]
curl --location --request PUT 'https://api.cloudflare.com/client/v4/accounts//storage/kv/namespaces//bulk' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"base64": false,
"expiration": 1578435000,
"expiration_ttl": 300,
"key": "My-Key",
"metadata": {
"someMetadataKey": "someMetadataValue"
},
"value": "Some string"
}
]'
{
"errors": [],
"messages": [],
"result": {},
"success": true
}