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

# Update an account

> Changes only the keys sent: standard fields at the top level (name, type, arr, renewal_date — when describe marks them writable), custom fields under `fields`. `null` clears a custom field that is not mandatory; standard fields cannot be cleared. Every key is checked before anything is written, and any problem refuses the whole request with a 422 listing each one in `details`: an unknown key, a value of the wrong type or outside the field's constraints or options, a mandatory field set to null, an owner field naming someone who is not a user, or a field describe marks `writable: false` (a field another system owns, which the message names where it can, or a type the API cannot write yet). The error's code is `field_not_writable` when every problem is of that kind, `validation_failed` otherwise. A write to a field that syncs to your CRM reaches it on the next sync, as an edit in the app does. Returns the updated account.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/objects/account/records/{account_id}
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/account/records/{account_id}:
    patch:
      tags:
        - accounts
      summary: Update an account
      description: >-
        Changes only the keys sent: standard fields at the top level (name,
        type, arr, renewal_date — when describe marks them writable), custom
        fields under `fields`. `null` clears a custom field that is not
        mandatory; standard fields cannot be cleared. Every key is checked
        before anything is written, and any problem refuses the whole request
        with a 422 listing each one in `details`: an unknown key, a value of the
        wrong type or outside the field's constraints or options, a mandatory
        field set to null, an owner field naming someone who is not a user, or a
        field describe marks `writable: false` (a field another system owns,
        which the message names where it can, or a type the API cannot write
        yet). The error's code is `field_not_writable` when every problem is of
        that kind, `validation_failed` otherwise. A write to a field that syncs
        to your CRM reaches it on the next sync, as an edit in the app does.
        Returns the updated account.
      operationId: accounts_update
      parameters:
        - in: path
          name: account_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              properties:
                arr:
                  default: null
                  description: Annual recurring revenue, whole dollars
                  title: Arr
                  type: integer
                fields:
                  anyOf:
                    - additionalProperties: true
                      type: object
                    - type: 'null'
                  default: null
                  description: Custom field keys to values
                  title: Fields
                name:
                  default: null
                  description: The account's name
                  title: Name
                  type: string
                renewal_date:
                  default: null
                  description: YYYY-MM-DD
                  format: date
                  title: Renewal Date
                  type: string
                type:
                  default: null
                  description: One of the account types describe lists
                  title: Type
                  type: string
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Account:
      properties:
        account_summary__s_:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Summary  S
        arr:
          anyOf:
            - type: integer
            - type: 'null'
          title: Arr
        crm_account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Crm Account Id
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
        experience_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Experience Health
        feature_requests_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Feature Requests Health
        fields:
          additionalProperties: true
          title: Fields
          type: object
        health:
          anyOf:
            - type: string
            - type: 'null'
          title: Health
        health_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Health Summary
        hierarchy:
          anyOf:
            - type: string
            - type: 'null'
          title: Hierarchy
        id:
          title: Id
          type: string
        last_activity_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Activity Date
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        outcomes_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Outcomes Health
        owner_names:
          items:
            type: string
          title: Owner Names
          type: array
        owners:
          items:
            $ref: '#/components/schemas/AccountOwner'
          title: Owners
          type: array
        parent:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent
        product_usage_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Usage Health
        relationship_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Relationship Health
        renewal_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Renewal Date
        risks_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Risks Health
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
      required:
        - id
      title: Account
      type: object
    AccountOwner:
      properties:
        field:
          anyOf:
            - type: string
            - type: 'null'
          title: Field
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        user_id:
          title: User Id
          type: string
      required:
        - user_id
      title: AccountOwner
      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.