Orbit GraphQL
Github
  • Orbit GraphQL
  • Quickstart
  • How does it work?
  • Configuration Options
  • API reference
    • GraphQL Endpoint
    • Cache Purge
      • Flush Everything
      • Flush a Resource
    • Get Cache Data
    • Healthcheck
Powered by GitBook
On this page
Edit on GitHub
  1. API reference
  2. Cache Purge

Flush a Resource

PreviousFlush EverythingNextGet Cache Data

Last updated 8 months ago

The path to flush cached data by GraphQL type.

post

Configurable using handlers_flush_by_type_path (in config.toml) or ORBIT_HANDLERS_FLUSH_BY_TYPE_PATH (using environment variables)

Body
typestringOptional
idstringOptional
Responses
200
Status indicating success or failure of the flush operation.
post
POST /flush.type HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 27

{
  "type": "text",
  "id": "text"
}
200

Status indicating success or failure of the flush operation.

No content