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

# Hide a project's task from the customer, or show it again

> Keeps the tasks in `hide` from the customer and shows those in `show`, as the app's task visibility dialog does; the project's other tasks keep theirs. Each must be a task of this project, in one list only. A task another request is changing is a 409: try again. Returns every task as saved.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/objects/project/records/{project_id}/task-visibility
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/objects/project/records/{project_id}/task-visibility:
    patch:
      tags:
        - projects
      summary: Hide a project's task from the customer, or show it again
      description: >-
        Keeps the tasks in `hide` from the customer and shows those in `show`,
        as the app's task visibility dialog does; the project's other tasks keep
        theirs. Each must be a task of this project, in one list only. A task
        another request is changing is a 409: try again. Returns every task as
        saved.
      operationId: projects_set_task_visibility
      parameters:
        - description: >-
            The project's id. To find it from the project's name: make_get_call
            with path `/v1/objects/project/records` and query
            `{"filter[title][eq]": "<name>"}`
          in: path
          name: project_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                hide:
                  description: Tasks to keep from the customer
                  items:
                    maxLength: 64
                    minLength: 1
                    type: string
                  maxItems: 5000
                  title: Hide
                  type: array
                show:
                  description: Tasks to show the customer again
                  items:
                    maxLength: 64
                    minLength: 1
                    type: string
                  maxItems: 5000
                  title: Show
                  type: array
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerTasks'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    CustomerTasks:
      properties:
        data:
          description: >-
            The project's tasks as the task table shows them: each followed by
            its subtasks, each group in its order
          items:
            $ref: '#/components/schemas/CustomerTask'
          title: Data
          type: array
        shared_with_customer:
          description: While false, the customer sees none of the project's tasks
          title: Shared With Customer
          type: boolean
      required:
        - shared_with_customer
        - data
      title: CustomerTasks
      type: object
    CustomerTask:
      properties:
        hidden:
          description: >-
            Kept from the customer. A hidden milestone hides the tasks under it
            too, on the customer's view
          title: Hidden
          type: boolean
        id:
          title: Id
          type: string
        milestone:
          title: Milestone
          type: boolean
        parent:
          anyOf:
            - type: string
            - type: 'null'
          description: The task it sits under; null at the top of the project
          title: Parent
        title:
          title: Title
          type: string
      required:
        - id
        - parent
        - title
        - milestone
        - hidden
      title: CustomerTask
      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.