Caches
API key passed in the Authorization header. Format: <api-key>
Filter results by flow_id.
Filter results by for_flow.
Filter results by scope.
Filter results by id.
Filter results by ,.
Filter results by name.
Filter results by LIKE.
Filter results by flow.
Comma-separated list of relationships to include. Available: flow
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/caches HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"name": "string",
"scope": "string",
"ttl": 0,
"flow_id": 0,
"flow": {
"id": 0,
"name": "string"
},
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/caches",
"per_page": 15,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/caches?page=1",
"last": "https://api.example.com/api/v1/caches?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
GET /api/v1/caches/metadata HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"key_count": 0,
"memory_usage": 0
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 0
}
}API key passed in the Authorization header. Format: <api-key>
The cache identifier.
Filter results by flow_id.
Filter results by for_flow.
Filter results by scope.
Filter results by id.
Filter results by ,.
Filter results by name.
Filter results by LIKE.
Filter results by flow.
Comma-separated list of relationships to include. Available: flow
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/caches/{cache} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"name": "string",
"scope": "string",
"ttl": 0,
"flow_id": 0,
"flow": {
"id": 0,
"name": "string"
},
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The cache identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/caches/{cache} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"ttl_unit": "example_ttl_unit",
"ttl_number": "example_ttl_number",
"name": "My Example"
}{
"data": {
"id": 1,
"scope": "example_scope",
"ttl": "example_ttl",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"name": "My Example",
"flow_id": 1,
"cache_template_id": 1,
"content": "example_content",
"ttl_unit": "example_ttl_unit",
"ttl_number": "example_ttl_number",
"flow": "example_flow"
}
}API key passed in the Authorization header. Format: <api-key>
The cache identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/caches/{cache} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}API key passed in the Authorization header. Format: <api-key>
The cache identifier.
The key identifier.
Successful response
No content
Unauthenticated
Unauthorized
GET /api/v1/caches/{cache}/content/{key} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
No content
API key passed in the Authorization header. Format: <api-key>
The cache identifier.
The key identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/caches/{cache}/content/{key} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"content": "example_content"
}{
"data": {
"id": 1,
"scope": "example_scope",
"ttl": "example_ttl",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"name": "My Example",
"flow_id": 1,
"cache_template_id": 1,
"content": "example_content",
"ttl_unit": "example_ttl_unit",
"ttl_number": "example_ttl_number",
"flow": "example_flow"
}
}API key passed in the Authorization header. Format: <api-key>
The cache identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/caches/{cache}/flush HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}API key passed in the Authorization header. Format: <api-key>
The cache identifier.
The search identifier.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/caches/{cache}/search/{search} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Last updated
Was this helpful?