Skip to main content

v1/gateway/{gatewayName} REST API Endpoint

Updates the Gateway settings.

Updated on
Oct 19, 2023

v1/gateway/{gatewayName} REST API Endpoint

Path Parameters

gatewayName
string
REQUIRED
the name of the gateway to be updated

Body Parameters

isEnabled
boolean
REQUIRED
A boolean value indicating whether the gateway should be enabled or disabled
isPrivate
boolean
REQUIRED
A boolean value indicating whether the gateway should be set as private or public

Returns

name
string
The name of the gateway
isPrivate
boolean
A boolean value indicating whether the gateway is private or not. If true, it means the gateway is private and not publicly accessible. If false, it means the gateway is public and can be accessed by authorized users
isEnabled
boolean
A boolean value indicating whether the gateway is enabled or disabled. If true, it means the gateway is currently enabled and operational. If false, it means the gateway is disabled and not functioning
id
integer
The unique identifier of the gateway
domain
string
The domain associated with the gateway
status
string
The status of the gateway
uuid
string
The universally unique identifier (UUID) of the gateway. UUIDs are used to identify resources uniquely
createdAt
string
The date and time when the gateway was created
updatedAt
string
The date and time when the gateway was last updated
Request
1
curl --location --request PATCH 'https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}' \
2
--header 'x-api-key: YOUR_API_KEY' \
3
--header 'Content-Type: application/json' \
4
--data-raw ' {
5
"isEnabled": true,
6
"isPrivate": true
7
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free