PUT /projects/{projectId}/semantic-cache

PUT /api/v1/projects/{projectId}/semantic-cache on the Caveman Cloud control plane. Requires the policy:publish_s0_s1 scope. Exposed to autonomous agents as the set_semantic_cache action of the caveman_project_setup tool (write access). Project settings for the bound project: semantic-cache shadowing and its options, pixel density, routing previews. Optimizations themselves are chosen per request (x-cave-optimize, x-cave-cache), not switched on here. Changing the semantic-cache threshold or TTL is refused server-side unless the caller holds policy:publish_s2_s3, which a scoped agent connection does not.

put/projects/{projectId}/semantic-cache

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/projects/{projectId}/semantic-cache
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: policy:publish_s0_s1
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Request body

mode'off' | 'shadow'
thresholdnumber
threshold_mode'auto' | 'pinned'
ttl_secondsinteger

Response

Successful response. Exact status depends on synchronous or durable delivery outcome.

Changes

No recorded changes to this operation across all 1 revision of this API.