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--標頭 '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--標頭 '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 原始 = JSON.stringify({6"isEnabled": true,7"isPrivate": true8});910var requestOptions = {11method: 'PATCH',12標題: myHeaders,13正文: 原始,14重定向: '追蹤'15};1617fetch("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}", requestOptions)18.接著(回應 => response.text())19.接著(結果 => 控制台.log(結果))20.catchcatch(錯誤 => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.追加("Content-Type", "application/json");45var 原始 = JSON.stringify({6"isEnabled": true,7"isPrivate": true8});910var requestOptions = {11method: 'PATCH',12標題: myHeaders,13正文: 原始,14重定向: '追蹤'15};1617fetch("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}", requestOptions)18.接著(回應 => response.text())19.接著(結果 => 控制台.log(結果))20.catchcatch(錯誤 => console.log('error', error));21
1匯入 請求2匯入 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}1415response = requests.request("PATCH", url, headers=headers, data=payload)1617列印(回應.text)18
1匯入 請求2匯入 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}1415response = requests.request("PATCH", url, headers=headers, data=payload)1617列印(回應.text)18
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910request = Net::HTTP::Patch.new(url)11request["x-api-key"] = "YOUR_API_KEY"12請求["Content-Type"] = "application/json"13請求。主體 = JSON.dump({14"isEnabled": true,15"isPrivate": true16})1718回應 = https.請求(請求)19puts 回應。read_body20
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910request = Net::HTTP::Patch.new(url)11request["x-api-key"] = "YOUR_API_KEY"12請求["Content-Type"] = "application/json"13請求。主體 = JSON.dump({14"isEnabled": true,15"isPrivate": true16})1718回應 = https.請求(請求)19puts 回應。read_body20