Create or set a batch of keys in a store
PUT {{fastly_url}}/resources/stores/kv/{{store_id}}/batch
Create or update keys, with Base64 encoded values, in bulk by specifying a list of JSON objects (separated by newlines) in the request body.
Authorization: API token with at least Engineer permissions.
Request Body
{"0"=>{"key"=>"hello", "value"=>"d29ybGRzCg=="}, "1"=>{"key"=>"fastly", "value"=>"a3ZzdG9yZQo=", "time_to_live_sec"=>60, "metadata"=>"Up to 2000B of data", "background_fetch"=>true}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Content-Type | string | ||
Accept | string |