Updates a gate
curl --request PUT \
--url https://app.dynamicauth.com/api/v0/gates/{gateId} \
--header 'Content-Type: application/json' \
--data '{
"name": "Super User Gate",
"outcome": "scope",
"rules": [
{
"address": {
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"networkId": 1
},
"filter": {},
"type": "nft"
}
],
"scope": "superuser"
}'
{
"enabledAt": "2023-11-07T05:31:56Z",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "Super User Gate",
"outcome": "scope",
"rules": [
{
"address": {
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"networkId": 1
},
"filter": {},
"type": "nft"
}
],
"scope": "superuser"
}
Path Parameters
ID of the gate
Body
Human-readable name of the gate. This should be something helpful to organize gates.
scope
, siteAccess
The rules which will be used to evaluate users being verified. If multiple rules are present in a single gate, then all the rules need to apply for the user to gain the scope defined by the gate.
String for the resulting scope of the gate. If the rules of the gate apply to the user being verified, then this scope will be surfaced in the JWT
Response
If the gate is enabled, then this timestamp will be present.
Human-readable name of the gate. This should be something helpful to organize gates.
scope
, siteAccess
The rules which will be used to evaluate users being verified. If multiple rules are present in a single gate, then all the rules need to apply for the user to gain the scope defined by the gate.
String for the resulting scope of the gate. If the rules of the gate apply to the user being verified, then this scope will be surfaced in the JWT. If a scope is not provided for the gate, the default behavior of the gate would be to block access to users that the rules do not currently apply to.
Was this page helpful?
curl --request PUT \
--url https://app.dynamicauth.com/api/v0/gates/{gateId} \
--header 'Content-Type: application/json' \
--data '{
"name": "Super User Gate",
"outcome": "scope",
"rules": [
{
"address": {
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"networkId": 1
},
"filter": {},
"type": "nft"
}
],
"scope": "superuser"
}'
{
"enabledAt": "2023-11-07T05:31:56Z",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "Super User Gate",
"outcome": "scope",
"rules": [
{
"address": {
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"networkId": 1
},
"filter": {},
"type": "nft"
}
],
"scope": "superuser"
}