v1/gateway/{gatewayName} REST API Endpoint
路径参数
gatewayName
字符串
必填
正在加载...
身体参数
isEnabled
布尔型
必填
正在加载...
isPrivate
布尔型
必填
正在加载...
退货
名称
字符串
正在加载...
isPrivate
布尔型
正在加载...
isEnabled
布尔型
正在加载...
id
整数
正在加载...
域名
字符串
正在加载...
状态
字符串
正在加载...
uuid
字符串
正在加载...
createdAt
字符串
正在加载...
updatedAt
字符串
正在加载...
请求
1curl --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": true7}'
1curl --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": true7}'
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"isEnabled": true,7"isPrivate": true8});910var requestOptions = {11method: 'PATCH',12标题: myHeaders,13正文: raw,14重定向: 'follow'15};1617fetch("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}", requestOptions)18.然后(响应 => 响应.text())19.然后(结果 => 控制台.log(result))20.catch(error => 控制台.log('error', error));21
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"isEnabled": true,7"isPrivate": true8});910var requestOptions = {11method: 'PATCH',12标题: myHeaders,13正文: raw,14重定向: 'follow'15};1617fetch("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}", requestOptions)18.然后(响应 => 响应.text())19.然后(结果 => 控制台.log(result))20.catch(error => 控制台.log('error', error));21
1导入 请求2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}"56有效载荷 = json.dumps({7"isEnabled": True,8"isPrivate": True9})10标题 = {11'x-api-key': 'YOUR_API_KEY',12“Content-Type”: 'application/json'13}1415回复 = 请求.请求("PATCH", url, headers=headers, 数据=有效载荷)1617打印(响应.text)18
1导入 请求2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}"56有效载荷 = json.dumps({7"isEnabled": True,8"isPrivate": True9})10标题 = {11'x-api-key': 'YOUR_API_KEY',12“Content-Type”: 'application/json'13}1415回复 = 请求.请求("PATCH", url, headers=headers, 数据=有效载荷)1617打印(响应.text)18
1require "uri"2require "json"3require "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::Patch.new(url)11请求["x-api-key"] = "您的 API 密钥"12请求["Content-Type"] = "application/json"13请求.请求体 = JSON.dump({14"isEnabled": true,15"isPrivate": true16})1718回复 = https.请求(请求)19返回响应.read_body20
1require "uri"2require "json"3require "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::Patch.new(url)11请求["x-api-key"] = "您的 API 密钥"12请求["Content-Type"] = "application/json"13请求.请求体 = JSON.dump({14"isEnabled": true,15"isPrivate": true16})1718回复 = https.请求(请求)19返回响应.read_body20