hellosendpie
hellosendpie
Explore posts from servers
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
Yup! It's not working. I'll find a place to report this bug. Since the /bulk/ endpoint seems to be working for setting expiration/expiration_ttl: - would there be any risk (w.r.t api limits) in just using the /bulk/ API endpoint, but adding just 1 array element each time I meed to make a write?
11 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
I'm guessing in that case, this isn't really supported?
11 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
When I request my data, I can't see "expiration" as a key set here.
{'result': [{'name': 'example_key'}], 'success': True, 'errors': [], 'messages': [], 'result_info': {'count': 1, 'cursor': ''}}
{'result': [{'name': 'example_key'}], 'success': True, 'errors': [], 'messages': [], 'result_info': {'count': 1, 'cursor': ''}}
When I use /bulk/ endpoint, it sets an "expiration" epoch key to my data.
11 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
This is a fresh namespace, I'm all okay with tinkering around. I'll try a bunch of permutation combinations and check
11 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
No description
11 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
I can see your screenshot is from the latter endpoint as well, but I need help with the former
11 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
Thank you so much! Does the
/accounts/{account_identifier}/storage/kv/namespaces/{namespace_identifier}/values/{key_name}
/accounts/{account_identifier}/storage/kv/namespaces/{namespace_identifier}/values/{key_name}
endpoint support this? Expiration only seems to work for me for the
https://api.cloudflare.com/client/v4
/accounts/{account_identifier}/storage/kv/namespaces/{namespace_identifier}/bulk
https://api.cloudflare.com/client/v4
/accounts/{account_identifier}/storage/kv/namespaces/{namespace_identifier}/bulk
endpoint
11 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 11/6/2023 in #kv
Cloudflare API Documentation
Ah, thanks! I'll make my own wrapper in that case. https://developers.cloudflare.com/api/operations/workers-kv-namespace-write-key-value-pair-with-metadata ^ Do I need to set "expiration" value within the metadata object?
11 replies