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

# Update a group

> Updates a partner group. Only the fields you send change. A new name also changes public_key, and a new website moves the short links of the group's partners from the old website to the new one.



## OpenAPI

````yaml /api-reference/openapi.json put /v2/groups/{id}
openapi: 3.1.0
info:
  title: Tolt Public API
  version: 2.0.0
servers:
  - url: https://platform.tolt.com
    description: Production
security:
  - bearerAuth: []
paths:
  /v2/groups/{id}:
    put:
      tags:
        - Groups
      summary: Update a group
      description: >-
        Updates a partner group. Only the fields you send change. A new name
        also changes public_key, and a new website moves the short links of the
        group's partners from the old website to the new one.
      operationId: updateGroup
      parameters:
        - schema:
            type: string
            example: grp_zUQ8Pt281MsbNDApmDPN3Y2a
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: >-
                    Name of the group, up to 255 characters. It also sets
                    public_key, the `?group=` key of the group's sign-up link:
                    the name in lowercase, with spaces turned into hyphens and
                    anything other than letters, digits and hyphens dropped
                    ("VIP Partners" becomes vip-partners). No two groups in a
                    program can have the same key. Renaming changes the key, so
                    sign-up links with the old key no longer lead to this group.
                description:
                  type:
                    - string
                    - 'null'
                  maxLength: 200
                  description: >-
                    Short description of the group that partners see on its
                    sign-up page, up to 200 characters. null clears it. Changing
                    it also clears the translations added in the dashboard, so
                    partners see this text in every language until new ones are
                    added.
                website_url:
                  type:
                    - string
                    - 'null'
                  maxLength: 2048
                  format: uri
                  pattern: ^https?:\/\/[^\s/\\]\S*$
                  description: >-
                    Website the referral links of the group's partners point to,
                    starting with http:// or https://. null goes back to the
                    program's website. Changing it from one website to another
                    also moves the short links of the group's partners that
                    point to the old website onto the new one: links to the old
                    website's own page go to the new website's page, and links
                    to other pages keep their page. A change of only http/https,
                    www, the domain's letter case or a trailing slash moves no
                    links.
                is_private:
                  type: boolean
                  description: >-
                    true makes people who sign up through the group's link
                    pending until you approve them; invited partners still join
                    as active.
                minimum_payout:
                  type:
                    - integer
                    - 'null'
                  minimum: 0
                  maximum: 9007199254740991
                  description: >-
                    Balance a partner in the group must reach before they are
                    paid, as an integer in minor units of the program currency
                    (5000 = 50.00), 0 or more. Above 16777216 it has to be an
                    amount the database stores exactly, such as a round one
                    (20000000). null goes back to the program's minimum.
                is_default:
                  type: boolean
                  description: >-
                    true makes this the program's default group, which people
                    join when they sign up without a group link. The previous
                    default group stops being the default. A program always has
                    a default group, so false is refused on the default group:
                    make another group the default instead.
              additionalProperties: false
              minProperties: 1
              example:
                description: Standard affiliate commission rates
                minimum_payout: 5000
      responses:
        '200':
          description: The updated group
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Request successful
                  data:
                    $ref: '#/components/schemas/Group'
                required:
                  - success
                  - message
                  - data
              example:
                success: true
                message: Successfully updated group
                data:
                  id: grp_zUQ8Pt281MsbNDApmDPN3Y2a
                  name: Default
                  description: Standard affiliate commission rates
                  program_id: prg_T6z8aRW3XCmvFWP972RKxpAd
                  is_default: true
                  public_key: null
                  website_url: https://example.com
                  is_private: false
                  allow_manual_lead_submission: false
                  minimum_payout: 5000
                  created_at: '2026-10-01T12:00:00Z'
                  updated_at: '2026-10-01T12:00:00Z'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: 'request: Invalid input: expected object, received null'
                code: validation_error
                doc_url: https://docs.tolt.com/errors#validation_error
                errors:
                  - field: request
                    message: 'Invalid input: expected object, received null'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Unauthorized
                code: unauthorized
                doc_url: https://docs.tolt.com/errors#unauthorized
        '404':
          description: Group not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Group not found
                code: not_found
                doc_url: https://docs.tolt.com/errors#not_found
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '409':
          description: >-
            The program already has a group with the public key this name gives,
            or the change would leave the program without a default group
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: >-
                  The program already has a group with the public key "vip".
                  Choose a different name
                code: already_exists
                doc_url: https://docs.tolt.com/errors#already_exists
                errors:
                  - field: name
                    message: >-
                      The program already has a group with the public key "vip".
                      Choose a different name
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          description: The group's short links couldn't be updated, so nothing was saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: >-
                  The group's short links couldn't be updated. Nothing was
                  saved, please try again
                code: short_link_unavailable
                doc_url: https://docs.tolt.com/errors#short_link_unavailable
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
components:
  schemas:
    Group:
      type: object
      properties:
        id:
          type: string
          example: grp_zUQ8Pt281MsbNDApmDPN3Y2a
        name:
          type:
            - string
            - 'null'
          example: Default
        description:
          type:
            - string
            - 'null'
          example: Standard affiliate commission rates
        program_id:
          type:
            - string
            - 'null'
          example: prg_T6z8aRW3XCmvFWP972RKxpAd
        is_default:
          type:
            - boolean
            - 'null'
          example: true
        public_key:
          type:
            - string
            - 'null'
          example: null
        website_url:
          type:
            - string
            - 'null'
          example: https://example.com
        is_private:
          type:
            - boolean
            - 'null'
          example: false
        allow_manual_lead_submission:
          type:
            - boolean
            - 'null'
          example: false
        minimum_payout:
          type:
            - number
            - 'null'
          example: 5000
        created_at:
          type: string
          format: date-time
          example: '2026-10-01T12:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-01T12:00:00Z'
      required:
        - id
        - name
        - description
        - program_id
        - is_default
        - public_key
        - website_url
        - is_private
        - allow_manual_lead_submission
        - minimum_payout
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          description: Human-readable explanation. May change; branch on code instead.
        code:
          type: string
          enum:
            - bad_request
            - validation_error
            - invalid_reference
            - invalid_cursor
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - already_exists
            - commission_paid
            - commission_frozen
            - transaction_refunded
            - commission_exists
            - rate_limited
            - short_link_unavailable
            - payload_too_large
            - internal_error
          description: Stable machine-readable error code.
          example: not_found
        doc_url:
          type: string
          example: https://docs.tolt.com/errors#not_found
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
            required:
              - field
              - message
          description: >-
            One entry per offending field. Present on validation_error and
            invalid_reference.
      required:
        - success
        - message
        - code
        - doc_url
  headers:
    X-RateLimit-Limit:
      description: Requests allowed in the current window.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Unix time, in seconds, when the window resets.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  responses:
    PayloadTooLarge:
      description: Request body exceeds 1 MB
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            message: Request body exceeds 1 MB
            code: payload_too_large
            doc_url: https://docs.tolt.com/errors#payload_too_large
    RateLimited:
      description: The API key exceeded its rate limit
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            message: Too many requests. Retry after the window resets.
            code: rate_limited
            doc_url: https://docs.tolt.com/errors#rate_limited
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Tolt API key sent as a bearer token.

````

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