> ## 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 bet 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/transfer-openapi.json PUT /api/v1/dt/user/limit
openapi: 3.1.0
info:
  title: Transfer Wallet API
  description: Game-API for vendors to obtain game-related data
  version: 1.0.0
servers:
  - url: https://api.example.com
    description: Production server
security: []
paths:
  /api/v1/dt/user/limit:
    put:
      tags:
        - User API
      summary: Update Player Bet Limits
      description: Update player bet 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 ID, 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 key)
            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/SuccessResponse'
              example:
                error:
                  code: 0
                  msg: Success
                  uuid: 3f1e16c7-4083-4897-b40b-55b7f674f72f
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: 2
                  msg: >-
                    request hash signature(0FACF22B9E3DB5CDC670A0F7A65BB76A) is
                    error
                  uuid: 9e96610f-5388-42df-b3ed-ba1b3178c63b
components:
  schemas:
    SuccessResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorInfo'
    Error:
      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 ID

````