> ## 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 project's settings: customer sharing, and the fields hidden from the customer or shown in the app

> Changes the settings sent, as a save on the app's project page does (the Share dialog, the field dialogs); the rest are kept. In `field_sharing`, `fields_shown` and `task_hidden_fields` only the entries sent change, and null puts one back to the default. `task_hidden_fields` hides fields from the customer on one task only (its status, say), leaving the task itself shown. Sharing with the customer here only switches it on or off: who may open the project is given in the app's Share dialog. `fields_shown` takes a task's standard fields; a custom field is added or removed with PUT or DELETE /v1/objects/project/records/{project_id}/fields/{field_key}; `fields_shown_default` is read only. A project another request is changing is a 409: try again. Returns the settings as saved.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/objects/project/records/{project_id}/settings
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}/settings:
    patch:
      tags:
        - projects
      summary: >-
        Change a project's settings: customer sharing, and the fields hidden
        from the customer or shown in the app
      description: >-
        Changes the settings sent, as a save on the app's project page does (the
        Share dialog, the field dialogs); the rest are kept. In `field_sharing`,
        `fields_shown` and `task_hidden_fields` only the entries sent change,
        and null puts one back to the default. `task_hidden_fields` hides fields
        from the customer on one task only (its status, say), leaving the task
        itself shown. Sharing with the customer here only switches it on or off:
        who may open the project is given in the app's Share dialog.
        `fields_shown` takes a task's standard fields; a custom field is added
        or removed with PUT or DELETE
        /v1/objects/project/records/{project_id}/fields/{field_key};
        `fields_shown_default` is read only. A project another request is
        changing is a 409: try again. Returns the settings as saved.
      operationId: projects_update_settings
      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:
                comment_sharing_default:
                  anyOf:
                    - enum:
                        - internal
                        - external
                      type: string
                    - type: 'null'
                  default: null
                  title: Comment Sharing Default
                field_sharing:
                  anyOf:
                    - additionalProperties:
                        anyOf:
                          - enum:
                              - internal
                              - external
                            type: string
                          - type: 'null'
                      maxProperties: 5000
                      propertyNames:
                        maxLength: 300
                        minLength: 3
                      type: object
                    - type: 'null'
                  default: null
                  description: >-
                    The fields to change, each external or internal; null puts
                    one back to the default. Fields not sent keep theirs
                  title: Field Sharing
                field_sharing_default:
                  anyOf:
                    - enum:
                        - internal
                        - external
                      type: string
                    - type: 'null'
                  default: null
                  title: Field Sharing Default
                fields_shown:
                  anyOf:
                    - additionalProperties:
                        anyOf:
                          - type: boolean
                          - type: 'null'
                      maxProperties: 5000
                      propertyNames:
                        maxLength: 300
                        minLength: 3
                      type: object
                    - type: 'null'
                  default: null
                  description: >-
                    A task's standard fields to show (true) or remove (false),
                    as `task:<key>`; null puts one back to the default. Fields
                    not sent keep theirs. A custom field is added to or removed
                    from a project with PUT or DELETE
                    /v1/objects/project/records/{project_id}/fields/{field_key},
                    which also keeps it internal for sharing
                  title: Fields Shown
                shared_with_customer:
                  anyOf:
                    - type: boolean
                    - type: 'null'
                  default: null
                  title: Shared With Customer
                task_hidden_fields:
                  anyOf:
                    - additionalProperties:
                        anyOf:
                          - items:
                              maxLength: 200
                              minLength: 1
                              type: string
                            maxItems: 500
                            type: array
                          - type: 'null'
                      maxProperties: 5000
                      propertyNames:
                        maxLength: 64
                        minLength: 1
                      type: object
                    - type: 'null'
                  default: null
                  description: >-
                    For each task sent (by id), the whole list of task fields
                    kept from the customer on it, by bare key (`status`, not
                    `task:status`); an empty list or null clears it. Tasks not
                    sent keep theirs
                  title: Task Hidden Fields
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectSettings'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    ProjectSettings:
      properties:
        comment_sharing_default:
          description: >-
            Whether a new comment is shown to the customer unless its writer
            says
          enum:
            - internal
            - external
          title: Comment Sharing Default
          type: string
        field_sharing:
          additionalProperties:
            enum:
              - internal
              - external
            type: string
          description: >-
            Fields shown to (external) or kept from (internal) the customer, by
            name: `project:<key>` for a field of the project, `task:<key>` for a
            column of its task table, with the keys `GET
            /v1/fields?object=project` (or `task`) lists, standard ones included
            (`task:status`). A project's custom field is shown only when listed
            external
          title: Field Sharing
          type: object
        field_sharing_default:
          description: >-
            Whether a field not listed in `field_sharing` is shown to the
            customer. A project's custom field is the exception: it is shown
            only when listed external
          enum:
            - internal
            - external
          title: Field Sharing Default
          type: string
        fields_shown:
          additionalProperties:
            type: boolean
          description: >-
            Fields shown (true) or removed (false) on the project in the app
            (the Edit fields dialog), by name. A removed task field is kept from
            the customer too
          title: Fields Shown
          type: object
        fields_shown_default:
          description: >-
            Whether a custom field not listed in `fields_shown` shows in the
            app. Read only: the app never changes it, and the share link reads
            it too
          title: Fields Shown Default
          type: boolean
        shared_with_customer:
          description: >-
            Whether the project is shared with the customer (the Share dialog's
            switch). While it is off, the customer sees none of it, and comments
            offer no internal/external choice
          title: Shared With Customer
          type: boolean
        task_hidden_fields:
          additionalProperties:
            items:
              type: string
            type: array
          description: >-
            For a task (by id), the task fields kept from the customer on that
            task alone, on top of `field_sharing`, by bare key (`status`, not
            `task:status`)
          title: Task Hidden Fields
          type: object
      required:
        - shared_with_customer
        - field_sharing_default
        - field_sharing
        - comment_sharing_default
        - fields_shown_default
        - fields_shown
        - task_hidden_fields
      title: ProjectSettings
      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.