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.追加("x-api-key", "您的 API 金鑰");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"isEnabled": true,7"isPrivate": true8});910var requestOptions = {11method: 'PATCH',12標題: myHeaders,13正文: 原始,14redirect: 'follow'15};1617fetch("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.追加("x-api-key", "您的 API 金鑰");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"isEnabled": true,7"isPrivate": true8});910var requestOptions = {11method: 'PATCH',12標題: myHeaders,13正文: 原始,14redirect: 'follow'15};1617fetch("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.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': '您的 API 金鑰',12「Content-Type」: 'application/json'13}1415response = requests.request("PATCH", url, headers=headers, data=payload)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': '您的 API 金鑰',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.主機, url.port)8https.use_ssl = true910request = 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
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910request = 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