> ## Documentation Index
> Fetch the complete documentation index at: https://www.vollna.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview filter changes

> Shows what a criteria change would match before you save it: jobs over the last 30 days with the change and without it, and the 5 newest jobs the changed filter would show. Saves nothing. Counts against the daily filter_preview cap. The sample jobs use project credits



## OpenAPI

````yaml post /filters/{id}/preview
openapi: 3.0.4
info:
  title: Vollna API
  description: API for managing Upwork profiles, proposals, results, and filters
  version: 1.0.0
servers:
  - url: https://api.vollna.com/v1
security: []
tags:
  - name: Profiles
    description: Manage Upwork profiles
  - name: Proposals
    description: Access and manage Upwork proposals
  - name: Results
    description: View monitoring results and projects
  - name: Filters
    description: Manage monitoring filters
  - name: Auto Bidding
    description: Manage auto bidding jobs and setups
  - name: Account
    description: The token team's account, plan and meters
  - name: Invitations
    description: Upwork invitations
  - name: Projects
    description: Upwork jobs and their competition
  - name: AI Qualifier
    description: A filter's AI qualifier and its verdicts
  - name: Market Insights
    description: Upwork market analytics and saved searches
  - name: Proposal Templates
    description: Proposal templates and their results
paths:
  /filters/{id}/preview:
    post:
      tags:
        - Filters
      summary: Preview filter changes
      description: >-
        Shows what a criteria change would match before you save it: jobs over
        the last 30 days with the change and without it, and the 5 newest jobs
        the changed filter would show. Saves nothing. Counts against the daily
        filter_preview cap. The sample jobs use project credits
      parameters:
        - name: id
          in: path
          description: Filter ID
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                patch:
                  type: object
                  description: Criteria keys to try, as in PATCH /filters/{id}
              required:
                - patch
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      filterId:
                        type: integer
                      changedFields:
                        type: array
                        items:
                          type: string
                      days:
                        type: integer
                        example: 30
                      jobs:
                        type: integer
                        description: Jobs the changed filter matches over the period
                      avgPerDay:
                        type: number
                      currentJobs:
                        type: integer
                        description: Jobs the filter matches today
                      currentAvgPerDay:
                        type: number
                      sampleJobs:
                        type: array
                        items:
                          type: object
                          properties:
                            projectId:
                              type: integer
                            title:
                              type: string
                            url:
                              type: string
                            publishedAt:
                              type: string
                              format: date-time
                              nullable: true
                            budget:
                              $ref: '#/components/schemas/JobBudget'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: >-
            No project credits remain for this page, or the team's subscription
            is not active
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          description: >-
            The daily filter_preview cap is used up, or the rate limit is
            reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
      security:
        - apiToken: []
components:
  schemas:
    JobBudget:
      type: object
      properties:
        type:
          type: string
          description: Budget type title, for example Hourly or Fixed-price
        amount:
          type: string
          description: The range or amount as shown in the feed
          nullable: true
      nullable: true
    ServiceError:
      type: object
      properties:
        error:
          type: string
          description: Short error title
          example: Validation failed
        message:
          type: string
          description: What went wrong and what to send instead, written for the user
        fields:
          type: object
          description: >-
            Per-field messages keyed by dot path, when several fields fail at
            once
          additionalProperties:
            type: string
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    BadRequest:
      description: >-
        Invalid request. message says what to send instead; fields names each
        invalid field
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ServiceError'
    Unauthorized:
      description: Missing or unknown API token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The plan has no API access, or the token team may not do this. message
        says why
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ServiceError'
    NotFound:
      description: Not found in the token's team
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ServiceError'
  securitySchemes:
    apiToken:
      type: apiKey
      name: X-API-TOKEN
      in: header
      description: API token for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.