> ## 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.

# Change a view's owner

> Admins only. Gives the view to another workspace member, who loses any share of it they had, and returns the view. A 409 means the new owner already has a view with that name: rename one first.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/views/{view_id}/owner
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}/owner:
    post:
      tags:
        - views
      summary: Change a view's owner
      description: >-
        Admins only. Gives the view to another workspace member, who loses any
        share of it they had, and returns the view. A 409 means the new owner
        already has a view with that name: rename one first.
      operationId: views_set_owner
      parameters:
        - in: path
          name: view_id
          required: true
          schema:
            minimum: 1
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                owner_id:
                  description: The new owner's person id, a workspace member
                  minLength: 1
                  title: Owner Id
                  type: string
              required:
                - owner_id
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/View'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    View:
      properties:
        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
        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
        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
    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
  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.