Filters
Retrieves a paginated list of filters.
API key passed in the Authorization header. Format: <api-key>
Filter results by field.
Filter results by model_type.
Filter results by model_id.
Filter results by is_default.
Filter results by keep_matching.
Page number for pagination.
1Number of results per page.
Filter results by active.
Successful response
Unauthenticated
Unauthorized
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/filters HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"type": "example_type",
"comparison": "example_comparison",
"value": "example_value",
"value_type": "example_value_type",
"keep_matching": "example_keep_matching",
"operator_logic": "example_operator_logic",
"match_order": "example_match_order",
"is_default": "example_is_default",
"location": "example_location",
"model_type": "example_model_type",
"model_id": 1,
"date_format": "example_date_format",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"field": "example_field"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/filters",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/filters?page=1",
"last": "https://api.example.com/api/v1/filters?page=1",
"prev": null,
"next": null
}
}Creates a new filter.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/filters HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 404
{
"type": "example_type",
"comparison": "example_comparison",
"value": "example_value",
"value_type": "example_value_type",
"keep_matching": "example_keep_matching",
"operator_logic": "example_operator_logic",
"match_order": "example_match_order",
"is_default": "example_is_default",
"location": "example_location",
"model_type": "example_model_type",
"model_id": 1,
"date_format": "example_date_format",
"field": "example_field"
}{
"data": {
"id": 1,
"type": "example_type",
"comparison": "example_comparison",
"value": "example_value",
"value_type": "example_value_type",
"keep_matching": "example_keep_matching",
"operator_logic": "example_operator_logic",
"match_order": "example_match_order",
"is_default": "example_is_default",
"location": "example_location",
"model_type": "example_model_type",
"model_id": 1,
"date_format": "example_date_format",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"field": "example_field"
}
}Retrieves the details of a specific filter.
API key passed in the Authorization header. Format: <api-key>
The filter identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/filters/{filter} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 1,
"type": "example_type",
"comparison": "example_comparison",
"value": "example_value",
"value_type": "example_value_type",
"keep_matching": "example_keep_matching",
"operator_logic": "example_operator_logic",
"match_order": "example_match_order",
"is_default": "example_is_default",
"location": "example_location",
"model_type": "example_model_type",
"model_id": 1,
"date_format": "example_date_format",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"field": "example_field"
}
}Updates an existing filter.
API key passed in the Authorization header. Format: <api-key>
The filter identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
PUT /api/v1/filters/{filter} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 357
{
"type": "example_type",
"comparison": "example_comparison",
"value": "example_value",
"value_type": "example_value_type",
"keep_matching": "example_keep_matching",
"operator_logic": "example_operator_logic",
"match_order": "example_match_order",
"is_default": "example_is_default",
"location": "example_location",
"date_format": "example_date_format",
"field": "example_field"
}{
"data": {
"id": 1,
"type": "example_type",
"comparison": "example_comparison",
"value": "example_value",
"value_type": "example_value_type",
"keep_matching": "example_keep_matching",
"operator_logic": "example_operator_logic",
"match_order": "example_match_order",
"is_default": "example_is_default",
"location": "example_location",
"model_type": "example_model_type",
"model_id": 1,
"date_format": "example_date_format",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"field": "example_field"
}
}Permanently deletes a specific filter.
API key passed in the Authorization header. Format: <api-key>
The filter identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
DELETE /api/v1/filters/{filter} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Last updated
Was this helpful?