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

# Update a trust

> Update an existing trust



## OpenAPI

````yaml /api-reference/openapi.yaml patch /v1/households/{household_id}/trusts/{id}
openapi: 3.0.1
info:
  title: Slant Public API V1
  version: v1
  description: Public API for creating and managing resources in Slant
  contact:
    name: Slant API Support
    email: api@slant.com
servers:
  - url: https://api.slant.app
security:
  - bearer: []
paths:
  /v1/households/{household_id}/trusts/{id}:
    parameters:
      - name: household_id
        in: path
        description: The household ID
        required: true
        example: household123xyz
        schema:
          type: string
    patch:
      tags:
        - Trusts
      summary: Update a trust
      description: Update an existing trust
      parameters:
        - name: id
          in: path
          description: The trust ID
          required: true
          example: 123e4567-e89b-12d3-a456-426614174000
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
          description: >-
            Unique key to ensure idempotent request handling. If a request with
            the same key was already processed, the original response will be
            returned.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Trust name
                  example: Updated Family Trust
                tax_id:
                  type: string
                  description: Tax ID
                  example: 98-7654321
                additional_info:
                  type: string
                  description: Additional information
        required: true
      responses:
        '200':
          description: trust updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trust'
        '400':
          description: bad request - invalid JSON
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - detail
                properties:
                  error:
                    type: string
                    description: Error code
                    enum:
                      - invalid_json
                  detail:
                    oneOf:
                      - type: string
                        description: Human-readable error description
                      - type: array
                        items:
                          type: string
                        description: Array of validation error messages
        '401':
          description: unauthorized - missing or invalid token
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - detail
                properties:
                  error:
                    type: string
                    description: Error code
                    enum:
                      - token_missing
                      - token_invalid
                  detail:
                    oneOf:
                      - type: string
                        description: Human-readable error description
                      - type: array
                        items:
                          type: string
                        description: Array of validation error messages
        '403':
          description: forbidden
        '404':
          description: not found
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - detail
                properties:
                  error:
                    type: string
                    description: Error code
                    enum:
                      - record_not_found
                  detail:
                    oneOf:
                      - type: string
                        description: Human-readable error description
                      - type: array
                        items:
                          type: string
                        description: Array of validation error messages
      security:
        - bearer: []
components:
  schemas:
    Trust:
      type: object
      required:
        - id
        - book_id
        - household_id
        - name
        - created_at
        - updated_at
      properties:
        id:
          type: string
          description: The trust ID
          example: abc123xyz
        book_id:
          type: string
          description: The book ID
          example: book123xyz
        household_id:
          type: string
          description: The household ID
          example: household123xyz
        name:
          type: string
          description: Trust name
          example: Smith Family Trust
        tax_id:
          type: string
          description: Tax ID
          example: 12-3456789
          nullable: true
        additional_info:
          type: string
          description: Additional information
          nullable: true
        created_at:
          type: string
          format: date-time
          description: When the trust was created
        updated_at:
          type: string
          format: date-time
          description: When the trust was last updated
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: OAuth
      description: OAuth 2.0 Bearer Token from Clerk authentication

````