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

# disablePolicy/{id}

> Disables an existing sponsorship policy by its ID.

Example values you can use to demo the API:

```json theme={null}
{
  "headers": {
    "apikey": "your_api_key_here"
  },
  "pathVariables": {
    "id": "policy_id_here"
  }
}
```

Example response:

```json theme={null}
{
  "message": "Policy disabled successfully."
}
```


## OpenAPI

````yaml arka put /disablePolicy/{id}
openapi: 3.0.3
info:
  title: Etherspot Arka Paymaster API
  version: 3.1.3
servers:
  - url: https://rpc.etherspot.io/paymaster
security: []
tags:
  - name: Arka
    externalDocs:
      description: Find out more about Arka
      url: https://etherspot.fyi/arka
externalDocs:
  description: Find out more about Arka
  url: https://etherspot.fyi/arka
paths:
  /disablePolicy/{id}:
    put:
      summary: disablePolicy/{id}
      description: Disables an existing sponsorship policy by its ID.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: integer
          description: The ID of the sponsorship policy to disable.
        - in: header
          name: apikey
          required: true
          schema:
            type: string
          description: API key associated with the wallet address.
      responses:
        '200':
          description: Successfully disabled the sponsorship policy
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Successfully disabled policy with id 123
        '400':
          description: >-
            Bad Request - Invalid ID or API key does not exist for the wallet
            address
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: >-
                      Invalid sponsorship policy ID or API key does not exist
                      for the wallet address
        '401':
          description: Not Authorized - Wallet address does not match for the API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Wallet address does not match for the API key
        '404':
          description: Not Found - Sponsorship policy not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Sponsorship policy not found
        '500':
          description: Internal Server Error - Failed to disable sponsorship policy
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Failed to disable sponsorship policy

````