curl --request PUT \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/gates/{gateId}/enable \
--header 'Authorization: Bearer <token>'
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "Super User Gate",
"scope": "superuser",
"enabledAt": "2023-11-07T05:31:56Z",
"rules": [
{
"type": "nft",
"address": {
"networkId": 1,
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
},
"filter": {
"tokenId": "0x01",
"amount": 123
}
}
],
"outcome": "scope"
}
curl --request PUT \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/gates/{gateId}/enable \
--header 'Authorization: Bearer <token>'
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "Super User Gate",
"scope": "superuser",
"enabledAt": "2023-11-07T05:31:56Z",
"rules": [
{
"type": "nft",
"address": {
"networkId": 1,
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
},
"filter": {
"tokenId": "0x01",
"amount": 123
}
}
],
"outcome": "scope"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the environment
36
"95b11417-f18f-457f-8804-68e361f9164f"
ID of the gate
36
"95b11417-f18f-457f-8804-68e361f9164f"
Successful
The response is of type object
.
Was this page helpful?