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

# Make a view your default

> Makes a view your default view of its page, which the app opens it on. Anyone who sees a view may. A segment is a 409. Returns the view.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/views/{view_id}/default
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/views/{view_id}/default:
    post:
      tags:
        - views
      summary: Make a view your default
      description: >-
        Makes a view your default view of its page, which the app opens it on.
        Anyone who sees a view may. A segment is a 409. Returns the view.
      operationId: views_set_default
      parameters:
        - description: The view's id, from GET /v1/views
          in: path
          name: view_id
          required: true
          schema:
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/View'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    View:
      properties:
        columns:
          anyOf:
            - items:
                $ref: '#/components/schemas/Column'
              type: array
            - type: 'null'
          description: 'The grid''s columns, in order; none: the page''s own'
          title: Columns
        conditions:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: >-
            The view's filter, in the app's own filter format; none selects
            every record
          title: Conditions
        default:
          default: false
          description: The default view of its table for the key's creator
          title: Default
          type: boolean
        id:
          title: Id
          type: integer
        list_type:
          anyOf:
            - enum:
                - my_book
                - team_book
                - all_customers
                - churned
                - unset
                - other
              type: string
            - type: 'null'
          description: >-
            Whose records the view selects. my_book and team_book are the book
            of the key's creator; none means every record
          title: List Type
        name:
          title: Name
          type: string
        object:
          description: >-
            The records the view selects: pass its id as view_id to this
            object's list
          enum:
            - account
            - contact
            - opportunity
          title: Object
          type: string
        owner:
          anyOf:
            - $ref: '#/components/schemas/ViewOwner'
            - type: 'null'
        shared:
          description: A workspace view, which every member sees
          title: Shared
          type: boolean
        sort:
          description: The grid's sort, first key first
          items:
            $ref: '#/components/schemas/SortOrder'
          title: Sort
          type: array
        table:
          description: >-
            The app page (or page tab) the view belongs to, such as accounts or
            accounts_customer
          title: Table
          type: string
        type:
          enum:
            - view
            - segment
          title: Type
          type: string
      required:
        - id
        - name
        - object
        - table
        - type
        - shared
      title: View
      type: object
    Column:
      properties:
        field:
          description: The field's key on its object
          title: Field
          type: string
        object:
          description: >-
            The field's object: the view's own, or account on an opportunities
            view
          title: Object
          type: string
        subfields:
          description: >-
            For a field with subfields: the subfields shown; empty: the field
            itself
          items:
            type: string
          title: Subfields
          type: array
      required:
        - field
        - object
        - subfields
      title: Column
      type: object
    ViewOwner:
      properties:
        id:
          description: The owner's person id (GET /v1/objects/user/records)
          title: Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      required:
        - id
      title: ViewOwner
      type: object
    SortOrder:
      properties:
        column:
          description: A column's field key
          title: Column
          type: string
        direction:
          enum:
            - asc
            - desc
          title: Direction
          type: string
        object:
          description: 'The field''s object: the view''s own, or another one the app saved'
          title: Object
          type: string
        subfield:
          anyOf:
            - type: string
            - type: 'null'
          description: 'For a field with subfields: the subfield it sorts by'
          title: Subfield
      required:
        - column
        - object
        - subfield
        - direction
      title: SortOrder
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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