Skip to main content
POST
/
projects
/
{project_reference}
/
cache
/
set-batch
Set Multiple Cache Entries
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/cache/set-batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entries": [
    {
      "key": "<string>",
      "value": "<string>",
      "ttl": 43200
    }
  ]
}
'
{
  "success": true,
  "count": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_reference
string
required

Body

application/json
entries
object[]
required

Array of cache entries to set (max 100)

Required array length: 1 - 100 elements

Response

Cache entries set successfully

success
boolean
required
count
number
required