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

# Update account limits

> Update an account's daily caps, sending days, timezone, and auto-withdraw settings. Caps are clamped to safe maximums.



## OpenAPI

````yaml /openapi.json patch /v1/accounts/{id}/limits
openapi: 3.0.0
info:
  title: Botdog API
  description: |-
    API documentation for Botdog.

    **Authentication**: Pass your API key as the `x-api-key` header.
    Example: `x-api-key: bd_live_abc123`

    Do NOT use the `Authorization` header.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.botdog.co
    description: Production
security: []
tags:
  - name: campaigns
    description: >-
      Create, read, update, and control campaigns (pause/resume, pause
      activities, archive, delete).
  - name: leads
    description: >-
      List and filter leads, read full detail + event history, update metadata,
      add to a campaign, or stop a sequence.
  - name: lists
    description: Manage lead/audience lists and their members.
  - name: blacklist
    description: Manage suppression lists (excluded profiles).
  - name: snippets
    description: Manage message snippets / templates.
  - name: accounts
    description: >-
      Connected LinkedIn accounts (seats), their connection health, and daily
      sending limits.
  - name: webhooks
    description: Manage webhook subscriptions.
  - name: messaging
    description: >-
      Send messages and replies, schedule a future send, and mark conversations
      read/unread. Rate-limited per sending account.
  - name: analytics
    description: Team-level analytics totals, daily breakdowns, and per-user metrics.
  - name: users
    description: Read the users in your team.
  - name: teams
    description: Current team context.
  - name: health
    description: Service health checks (no authentication).
paths:
  /v1/accounts/{id}/limits:
    patch:
      tags:
        - accounts
      summary: Update account limits
      description: >-
        Update an account's daily caps, sending days, timezone, and
        auto-withdraw settings. Caps are clamped to safe maximums.
      operationId: LinkedinAccountsController_updateLimits
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccountLimitsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountLimitsDto'
        '401':
          description: Unauthorized. API key is missing or invalid.
        '404':
          description: Account not found
        '429':
          description: Rate limit exceeded. Retry after cooldown.
      security:
        - api-key: []
components:
  schemas:
    UpdateAccountLimitsDto:
      type: object
      properties:
        maxDailyInvites:
          type: number
          description: Daily connection-invite cap
          minimum: 0
        maxDailyMessages:
          type: number
          description: Daily message cap
          minimum: 0
        maxDailyInmails:
          type: number
          description: Daily InMail cap
          minimum: 0
        maxDailyProfileVisits:
          type: number
          description: Daily profile-visit cap
          minimum: 0
        maxDailyCompanyPageInvitations:
          type: number
          description: Daily company-page-invitation cap
          minimum: 0
        maxDailyReactToPosts:
          type: number
          description: Daily post-reaction cap
          minimum: 0
        enableAutoWithdrawal:
          type: boolean
          description: Whether to auto-withdraw pending invites
        inviteWithdrawalDuration:
          type: number
          description: Days after which a pending invite is auto-withdrawn (1-91)
          minimum: 1
          maximum: 91
        activeDaysOfWeek:
          type: array
          description: Days of the week on which sending is active
          items:
            type: string
            enum:
              - MONDAY
              - TUESDAY
              - WEDNESDAY
              - THURSDAY
              - FRIDAY
              - SATURDAY
              - SUNDAY
        timezone:
          type: string
          description: IANA timezone used for the daily reset and sending window
          example: America/New_York
    AccountLimitsDto:
      type: object
      properties:
        accountId:
          type: number
          description: The account (seat) identifier
        ownerId:
          type: string
          description: The ID of the user who owns this account
        timezone:
          type: string
          description: The timezone used to determine the daily reset boundary
          example: America/New_York
        date:
          type: string
          description: The date (in the account timezone) the usage counts apply to
          example: '2026-06-18'
        isCurrentlyThrottled:
          type: boolean
          description: Whether the account is currently throttled by LinkedIn
          example: false
        activeDaysOfWeek:
          description: Days of the week on which sending is active
          example:
            - MONDAY
            - TUESDAY
            - WEDNESDAY
            - THURSDAY
            - FRIDAY
          type: array
          items:
            type: string
        inMailCredit:
          type: number
          description: Remaining InMail credits
          example: 0
        searchesPerDay:
          type: number
          description: Daily search cap (no per-day usage counter is tracked)
          example: 80
        limits:
          $ref: '#/components/schemas/AccountLimitsBreakdownDto'
      required:
        - accountId
        - ownerId
        - timezone
        - date
        - isCurrentlyThrottled
        - activeDaysOfWeek
        - inMailCredit
        - searchesPerDay
        - limits
    AccountLimitsBreakdownDto:
      type: object
      properties:
        invitations:
          $ref: '#/components/schemas/LimitBucketDto'
        messages:
          $ref: '#/components/schemas/LimitBucketDto'
        profileVisits:
          $ref: '#/components/schemas/LimitBucketDto'
        inmails:
          $ref: '#/components/schemas/LimitBucketDto'
        companyPageInvitations:
          $ref: '#/components/schemas/LimitBucketDto'
        reactToPosts:
          $ref: '#/components/schemas/LimitBucketDto'
      required:
        - invitations
        - messages
        - profileVisits
        - inmails
        - companyPageInvitations
        - reactToPosts
    LimitBucketDto:
      type: object
      properties:
        limit:
          type: number
          description: The configured daily cap
          example: 15
        usedToday:
          type: number
          description: How many have been used so far today
          example: 4
        remaining:
          type: number
          description: Remaining quota for today (never negative)
          example: 11
      required:
        - limit
        - usedToday
        - remaining
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      x-default: bd_live_your_key_here

````