PUT
/
enablePolicy
/
{id}
/enablePolicy/{id}
curl --request PUT \
  --url https://rpc.etherspot.io/paymaster/enablePolicy/{id} \
  --header 'apikey: <apikey>'
{
  "message": "Successfully enabled policy with id 123"
}
Example values you can use to demo the API:
{
  "headers": {
    "apikey": "your_api_key_here"
  },
  "pathVariables": {
    "id": "policy_id_here"
  }
}
Example response:
{
  "message": "Policy enabled successfully."
}

Headers

apikey
string
required

API key associated with the wallet address.

Path Parameters

id
integer
required

The ID of the sponsorship policy to enable.

Response

Successfully enabled the sponsorship policy

The response is of type object.