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

# Update Player Bet Limits

> Update player betting limit settings

<Accordion title="Possible Error Codes for this API">
  | Code | Description                                                          |
  | ---- | -------------------------------------------------------------------- |
  | 0    | Success                                                              |
  | 2    | Invalid parameter                                                    |
  | 4    | Customer does not exist                                              |
  | 19   | Request limit reached                                                |
  | 20   | Secret key error                                                     |
  | 25   | Type parameter error                                                 |
  | 36   | Server error                                                         |
  | 41   | The specified bet limit is not available on the parent agent account |
  | 42   | Request rate too high                                                |
  | 9999 | Unknown error                                                        |
</Accordion>


## OpenAPI

````yaml en/seamless-openapi.json PUT /api/v1/dt/user/limit
openapi: 3.1.0
info:
  title: Seamless Wallet API
  description: Seamless Wallet API documentation, including Game-API and Wallet-API
  version: 1.0.0
servers:
  - url: https://api.example.com
    description: API Server
security: []
tags:
  - name: Game-API User
    description: Game API - User operations
  - name: Game-API Report
    description: Game API - Report queries
  - name: Game-API Internal
    description: Game API - Internal use (hidden)
  - name: Wallet-API
    description: Wallet API - Implemented by vendor
paths:
  /api/v1/dt/user/limit:
    put:
      tags:
        - Game-API User
      summary: Update Player Limit
      description: Update player betting limit settings
      operationId: updatePlayerLimit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - uuid
                - platform_id
                - username
                - limit_id
                - type
                - key
              properties:
                uuid:
                  type: string
                  description: >-
                    Platform-defined unique request serial number, length >= 32
                    and <= 128 bytes
                platform_id:
                  type: string
                  description: Platform product ID
                username:
                  type: string
                  description: >-
                    User account in game (max 23 characters, lowercase letters
                    and numbers only, only one account per request)
                limit_id:
                  type: string
                  description: Bet limit ID (only one ID per request)
                type:
                  type: string
                  description: >-
                    Limit setting type (1: Delete, 2: Replace). Use 2 (Replace)
                    to assign a bet limit when the player currently has none
                key:
                  type: string
                  description: md5(username + limit_id + type + platform_secret)
            example:
              uuid: 3f1e16c7-4083-4897-b40b-55b7f674f72f
              platform_id: AXTES
              username: player001
              limit_id: '1'
              type: '2'
              key: abc123hash
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameApiResponse'
              example:
                error:
                  code: 0
                  msg: Success
                  uuid: 3f1e16c7-4083-4897-b40b-55b7f674f72f
        '400':
          description: Request Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 2
                  msg: >-
                    request hash signature(0FACF22B9E3DB5CDC670A0F7A65BB76A) is
                    error
                  uuid: 9e96610f-5388-42df-b3ed-ba1b3178c63b
components:
  schemas:
    GameApiResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorInfo'
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
        message:
          type: string
          description: Error message
        data:
          description: Data (usually null)
        status_code:
          type: integer
          description: HTTP status code
        service:
          type: string
          description: Service name
    ErrorInfo:
      type: object
      properties:
        code:
          type: integer
          description: Error code
        msg:
          type: string
          description: Error message
        uuid:
          type: string
          description: Request serial number

````