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

# Update a team

> Update a team for the authenticated workspace. If there’s no change, returns it as it is.



## OpenAPI

````yaml patch /teams/{id}
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /teams/{id}:
    patch:
      tags:
        - Teams
      summary: Update a team
      description: >-
        Update a team for the authenticated workspace. If there’s no change,
        returns it as it is.
      operationId: updateTeamById
      parameters:
        - schema:
            type: string
            format: uuid
            description: Unique identifier of the team
            example: 123e4567-e89b-12d3-a456-426614174000
          required: true
          description: Unique identifier of the team
          in: path
          name: id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 2
                  maxLength: 32
                  description: >-
                    Name of the team or organization. Must be between 2 and 32
                    characters
                  example: Acme Corporation
                email:
                  type: string
                  format: email
                  description: Primary contact email address for the team
                  example: team@acme.com
                logoUrl:
                  type: string
                  format: uri
                  description: URL to the team's logo image
                  example: >-
                    https://example.supabase.co/storage/v1/object/public/avatars/logo.png
                baseCurrency:
                  type: string
                  description: >-
                    Base currency for the team in ISO 4217 format (3-letter
                    currency code)
                  example: USD
                countryCode:
                  type: string
                  description: Country code for the team
                  example: US
                fiscalYearStartMonth:
                  type: integer
                  nullable: true
                  minimum: 1
                  maximum: 12
                  description: >-
                    Month when the fiscal year starts (1-12). Null for trailing
                    12 months. Defaults based on country if not specified.
                  example: 4
                exportSettings:
                  type: object
                  properties:
                    csvDelimiter:
                      type: string
                    includeCSV:
                      type: boolean
                    includeXLSX:
                      type: boolean
                    sendEmail:
                      type: boolean
                    accountantEmail:
                      type: string
                  required:
                    - csvDelimiter
                    - includeCSV
                    - includeXLSX
                    - sendEmail
                  description: Export settings for transactions
                underwritingEnabled:
                  type: boolean
                  description: >-
                    Whether underwriting is enabled for this team. When enabled,
                    merchants must complete underwriting before creating deals.
                  example: true
                settings:
                  type: object
                  properties:
                    show_pending_transactions:
                      type: boolean
                    mark_new_as_needs_review:
                      type: boolean
                    mark_uncategorized_as_needs_review:
                      type: boolean
                    ai_insights_enabled:
                      type: boolean
                    weekly_portfolio_recap:
                      type: boolean
                    nsf_alert_threshold:
                      type: integer
                      minimum: 1
                      maximum: 10
                    late_payment_alert_days:
                      type: integer
                      minimum: 1
                      maximum: 30
                    default_dashboard_view:
                      type: string
                      enum:
                        - portfolio
                        - merchants
                    mca_defaults:
                      type: object
                      properties:
                        nsf_fee:
                          type: number
                          minimum: 0
                          maximum: 500
                        business_days_per_month:
                          type: integer
                          minimum: 15
                          maximum: 25
                        default_payment_frequency:
                          type: string
                          enum:
                            - daily
                            - weekly
                            - bi_weekly
                            - monthly
                            - variable
                        default_contract_term:
                          type: integer
                          minimum: 1
                          maximum: 60
                        funding_amount_presets:
                          type: array
                          items:
                            type: number
                            minimum: 1000
                            maximum: 10000000
                          maxItems: 10
                        factor_rate_presets:
                          type: array
                          items:
                            type: number
                            minimum: 1
                            maximum: 2
                          maxItems: 10
                        default_commission_type:
                          type: string
                          enum:
                            - percentage
                            - flat
                        default_commission_base:
                          type: string
                          enum:
                            - funded
                            - payback
                  description: >-
                    General team settings and preferences (transaction review,
                    AI, risk alerts, display)
                branding:
                  type: object
                  properties:
                    displayName:
                      type: string
                      maxLength: 100
                    primaryColor:
                      type: string
                      pattern: ^#[0-9A-Fa-f]{6}$
                    secondaryColor:
                      type: string
                      pattern: ^#[0-9A-Fa-f]{6}$
                    emailFromName:
                      type: string
                      maxLength: 100
                    pdfFooterText:
                      type: string
                      maxLength: 500
                    emailReplyTo:
                      anyOf:
                        - type: string
                          nullable: true
                          format: email
                        - type: string
                          enum:
                            - ''
                        - nullable: true
                    collectionsTeam:
                      type: array
                      items:
                        type: object
                        properties:
                          userId:
                            type: string
                            format: uuid
                          title:
                            type: string
                            maxLength: 100
                        required:
                          - userId
                    documentSigners:
                      type: object
                      properties:
                        useGeneratingUser:
                          type: boolean
                        collectionsNotices:
                          type: object
                          properties:
                            userId:
                              type: string
                              format: uuid
                            signerTitle:
                              type: string
                              maxLength: 100
                            signatureLineText:
                              type: string
                              maxLength: 200
                            department:
                              type: string
                              maxLength: 100
                            directPhone:
                              type: string
                              maxLength: 30
                            contactEmail:
                              anyOf:
                                - type: string
                                  format: email
                                - type: string
                                  enum:
                                    - ''
                          required:
                            - userId
                        payoffLetters:
                          type: object
                          properties:
                            userId:
                              type: string
                              format: uuid
                            signerTitle:
                              type: string
                              maxLength: 100
                            signatureLineText:
                              type: string
                              maxLength: 200
                            department:
                              type: string
                              maxLength: 100
                            directPhone:
                              type: string
                              maxLength: 30
                            contactEmail:
                              anyOf:
                                - type: string
                                  format: email
                                - type: string
                                  enum:
                                    - ''
                          required:
                            - userId
                        disclosureDocuments:
                          type: object
                          properties:
                            userId:
                              type: string
                              format: uuid
                            signerTitle:
                              type: string
                              maxLength: 100
                            signatureLineText:
                              type: string
                              maxLength: 200
                            department:
                              type: string
                              maxLength: 100
                            directPhone:
                              type: string
                              maxLength: 30
                            contactEmail:
                              anyOf:
                                - type: string
                                  format: email
                                - type: string
                                  enum:
                                    - ''
                          required:
                            - userId
                        deals:
                          type: object
                          properties:
                            userId:
                              type: string
                              format: uuid
                            signerTitle:
                              type: string
                              maxLength: 100
                            signatureLineText:
                              type: string
                              maxLength: 200
                            department:
                              type: string
                              maxLength: 100
                            directPhone:
                              type: string
                              maxLength: 30
                            contactEmail:
                              anyOf:
                                - type: string
                                  format: email
                                - type: string
                                  enum:
                                    - ''
                          required:
                            - userId
                    companyAddress:
                      type: object
                      properties:
                        street:
                          type: string
                          maxLength: 200
                        suite:
                          type: string
                          maxLength: 100
                        city:
                          type: string
                          maxLength: 100
                        state:
                          type: string
                          maxLength: 50
                        zip:
                          type: string
                          maxLength: 20
                    companyPhone:
                      type: string
                      nullable: true
                      maxLength: 30
                    companyWebsite:
                      anyOf:
                        - type: string
                          format: uri
                        - type: string
                          enum:
                            - ''
                    reviewUrl:
                      anyOf:
                        - type: string
                          format: uri
                        - type: string
                          enum:
                            - ''
                    wiringInfo:
                      type: object
                      properties:
                        bankName:
                          type: string
                          maxLength: 200
                        routingNumber:
                          type: string
                          maxLength: 20
                        accountNumber:
                          type: string
                          maxLength: 30
                        bankAddress:
                          type: string
                          maxLength: 300
                  description: Portal branding and configuration
      responses:
        '200':
          description: Team updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier of the team
                    example: 123e4567-e89b-12d3-a456-426614174000
                  name:
                    type: string
                    description: Name of the team or organization
                    example: Acme Corporation
                  logoUrl:
                    type: string
                    nullable: true
                    format: uri
                    description: URL to the team's logo image
                    example: >-
                      https://example.supabase.co/storage/v1/object/public/avatars/logo.png
                  plan:
                    type: string
                    enum:
                      - trial
                      - connect
                      - pro
                    description: Current subscription plan of the team
                    example: pro
                required:
                  - id
                  - name
                  - logoUrl
                  - plan
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.