Gas Policies (Legacy)
Update a gas policy (legacy - use /v2/fee-sponsorship for new integrations).
Changed onpost/v1/policies/{id}
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v1/policies/{id}
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
idstring required
Specifies the unique policy ID (starts with pol_).
Request body
Example request
{
"name": "My Policy",
"chainId": 80002,
"strategy": {
"tokenContract": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35",
"tokenContractAmount": "1000000000000000000"
},
"paymaster": "pay_6f6c9067-89fa-4fc8-ac72-c242a268c584",
"forwarderContract": "cfo_f0f89cf2-c185-40f4-beef-2a250d7a472b"
}Response
Successful response.
Changes
- info
removed from the
//////response propertyanyOflist for the response status - info
removed the
zkSyncenum value from the//////response property for the response status
- info
- breaking
the
///////response's property type changed from no type toobjectfor status - info
the security scope
fee_sponsorship:writewas added to the endpoint's security schemesk - info
added the optional property
//////to the response with the status - info
added the optional property
////////to the response with the status - info
added the optional property
////////to the response with the status - info
added the required property
////////to the response with the status
- breaking