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

# Update collection settings

> Update the collection settings of the account; omitted fields keep their value.



## OpenAPI

````yaml patch /v1/collections/settings
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/collections/settings:
    patch:
      tags:
        - Collections > Settings
      summary: Update collection settings
      description: >-
        Update the collection settings of the account; omitted fields keep their
        value.
      operationId: updateCollectionSettings
      requestBody:
        description: Settings to change
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCollectionSettings'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionSettings'
        '403':
          description: Collections is not enabled on the account
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    UpdateCollectionSettings:
      type: object
      properties:
        general_context:
          type:
            - string
            - 'null'
          maxLength: 10000
          description: >-
            Context the collection agent reads on every case: tone, business
            rules, what it may offer.
        sender_email_domain_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the verified email domain the collection emails are sent from.
            `null` sends from the Hyperline domain.
        quiet_hours:
          type:
            - object
            - 'null'
          properties:
            start_time:
              type: string
              pattern: ^([01]\d|2[0-3]):[0-5]\d$
              description: Start of the quiet hours, in `HH:mm` format.
              example: '20:00'
            end_time:
              type: string
              pattern: ^([01]\d|2[0-3]):[0-5]\d$
              description: End of the quiet hours, in `HH:mm` format.
              example: '08:00'
            skip_weekends:
              type: boolean
              description: Whether no collection email is sent on weekends.
          required:
            - start_time
            - end_time
            - skip_weekends
          description: >-
            Hours during which no collection email is sent, in the customer's
            timezone. `null` disables quiet hours.
        daily_cap_per_customer:
          type: integer
          minimum: 1
          maximum: 20
          description: Maximum number of collection emails sent to a customer per day.
        credit_note_approval_threshold:
          type:
            - string
            - 'null'
          pattern: ^\d+(\.\d+)?$
          description: >-
            Credit note amount, in major units, above which the agent needs an
            approval. `null` means every credit note needs one.
        automatic_mode_enabled:
          type: boolean
          description: >-
            Whether playbooks in automatic mode may act without a person's
            approval.
    CollectionSettings:
      type: object
      properties:
        general_context:
          type:
            - string
            - 'null'
          description: >-
            Context the collection agent reads on every case: tone, business
            rules, what it may offer.
        sender_email_domain_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the verified email domain the collection emails are sent from.
            `null` sends from the Hyperline domain.
        quiet_hours:
          $ref: '#/components/schemas/CollectionQuietHours'
        daily_cap_per_customer:
          type: integer
          description: Maximum number of collection emails sent to a customer per day.
          example: 1
        credit_note_approval_threshold:
          type:
            - string
            - 'null'
          pattern: ^\d+(\.\d+)?$
          description: >-
            Credit note amount, in major units, above which the agent needs an
            approval. `null` means every credit note needs one.
          example: '100'
        automatic_mode_enabled:
          type: boolean
          description: >-
            Whether playbooks in automatic mode may act without a person's
            approval.
      required:
        - general_context
        - sender_email_domain_id
        - quiet_hours
        - daily_cap_per_customer
        - credit_note_approval_threshold
        - automatic_mode_enabled
    CollectionQuietHours:
      type:
        - object
        - 'null'
      properties:
        start_time:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
          description: Start of the quiet hours, in `HH:mm` format.
          example: '20:00'
        end_time:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
          description: End of the quiet hours, in `HH:mm` format.
          example: '08:00'
        skip_weekends:
          type: boolean
          description: Whether no collection email is sent on weekends.
      required:
        - start_time
        - end_time
        - skip_weekends
      description: >-
        Hours during which no collection email is sent, in the customer's
        timezone. `null` disables quiet hours.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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