Model Filter Values
API key passed in the Authorization header. Format: <api-key>
Filter results by filter_id.
Filter results by model_type.
Filter results by model_id.
Filter results by filter.model_type.
Filter results by filter.model_id.
Filter results by does_not_belong_to_deleted_step.
Filter results by model.
Comma-separated list of relationships to include. Available: filter
Sort field. Prefix with - for descending. Available: filter_id
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/model-filter-values HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"model_type": "example_model_type",
"model_id": 1,
"filter_id": 1,
"value": "example_value",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"filter": {}
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/model-filter-values",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/model-filter-values?page=1",
"last": "https://api.example.com/api/v1/model-filter-values?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/model-filter-values HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 86
{
"model_type": "example_model_type",
"model_id": 1,
"filter_id": 1,
"value": "example_value"
}{
"data": {
"id": 1,
"model_type": "example_model_type",
"model_id": 1,
"filter_id": 1,
"value": "example_value",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"filter": {}
}
}API key passed in the Authorization header. Format: <api-key>
The model filter value identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/model-filter-values/{model_filter_value} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"filter_id": 1,
"value": "example_value"
}{
"data": {
"id": 1,
"model_type": "example_model_type",
"model_id": 1,
"filter_id": 1,
"value": "example_value",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"filter": {}
}
}API key passed in the Authorization header. Format: <api-key>
The model filter value identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/model-filter-values/{model_filter_value} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Last updated
Was this helpful?