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

# Change Onchain Daily Limit with Signature

> This endpoint is deprecated and will be removed in a future version.
Please use `PUT /api/v1/accounts/daily-limit` instead.

Sets a new onchain daily spending limit for the authenticated user's Safe account.
This endpoint requires a valid signature from the user's wallet to authorize the change.

The signature should be generated by signing the transaction data obtained from
the `/api/v1/accounts/onchain-daily-limit/transaction-data` endpoint.

The limit update is processed through a delay relay mechanism that executes after 3 minutes.

**Note:** The onchainDailyLimit must be an integer value between 1 and 8000.




## OpenAPI

````yaml https://api.gnosispay.com/api-docs/spec.json put /api/v1/accounts/onchain-daily-limit
openapi: 3.0.0
info:
  title: GnosisPay API
  version: 1.0.0
  description: OpenAPI documentation for GnosisPay
servers:
  - url: https://api.gnosispay.com
security: []
tags:
  - name: Account Management
    description: Information about your Account
  - name: Authentication
    description: Authenticate to our API using SIWE
  - name: Card Management
    description: Manage all your Cards
  - name: IBAN
    description: Integrate with Monerium to issue IBANs
  - name: KYC
    description: KYC using Sumsub SDK
  - name: Physical Card Order
    description: Order a Physical Card and manage the process
  - name: Rewards
    description: Cashback Rewards
  - name: Safe Management
    description: Manage your Safe
  - name: Transactions
    description: Manage Card Transactions
  - name: User
    description: Manage User Information
  - name: Webhooks
    description: Manage Webhooks
paths:
  /api/v1/accounts/onchain-daily-limit:
    put:
      tags:
        - Account Management
      summary: Change Onchain Daily Limit with Signature
      description: >
        This endpoint is deprecated and will be removed in a future version.

        Please use `PUT /api/v1/accounts/daily-limit` instead.


        Sets a new onchain daily spending limit for the authenticated user's
        Safe account.

        This endpoint requires a valid signature from the user's wallet to
        authorize the change.


        The signature should be generated by signing the transaction data
        obtained from

        the `/api/v1/accounts/onchain-daily-limit/transaction-data` endpoint.


        The limit update is processed through a delay relay mechanism that
        executes after 3 minutes.


        **Note:** The onchainDailyLimit must be an integer value between 1 and
        8000.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - onchainDailyLimit
                - signature
              properties:
                onchainDailyLimit:
                  type: integer
                  minimum: 1
                  maximum: 8000
                  description: The new daily spending limit to set (must be an integer).
                  example: 2500
                signature:
                  type: string
                  description: The wallet signature authorizing this limit change.
                  example: 0x1234567890abcdef...
      responses:
        '200':
          description: Successfully submitted the daily limit update request.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - requestedOnchainDailyLimit
                    properties:
                      requestedOnchainDailyLimit:
                        type: integer
                        description: The daily limit value that was requested to be set.
                        example: 2500
        '400':
          description: Bad request - invalid signature.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Details about the validation error.
                    example: Invalid signature provided
        '401':
          description: Unauthorized - invalid or missing authentication token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Authentication error message.
                    example: Unauthorized
        '404':
          description: Safe account or token not found for the user.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message explaining why the request failed.
                    example: Couldn't find associated Safe for the user
        '422':
          description: Unprocessable Entity - validation errors in request body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Details about the validation error.
                    example: signature is required
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Details about the server error.
                    example: An unexpected error occurred.
      deprecated: true
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````