Policies
Create a policy.
Changed onCreates a new policy with the specified rules.
post/v2/policies
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v2/policies
- Auth: one of:
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"scope": "project",
"description": "Limit ETH transfers to 1 ETH to approved addresses",
"accountId": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65",
"enabled": true,
"rules": [
{
"action": "accept",
"operation": "signEvmTransaction",
"criteria": [
{
"type": "evmAddress",
"operator": "in",
"addresses": [
"0x742d35Cc6634C0532925a3b844Bc9e7595f0aB12"
]
}
]
}
]
}Response
Created.
Example response
{
"description": "Limit ETH transfers to 1 ETH to approved addresses",
"accountId": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65",
"enabled": true,
"rules": [
{
"operation": "signEvmTransaction"
}
]
}Changes
- info
the security scope
policies:writewas added to the endpoint's security schemesk
- info
- warning
added the new
transactionenum value to theresponse property for the response status - info
added the new
transactionenum value to the request property
- warning