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.append("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.catchcatch(エラー => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.append("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.catchcatch(エラー => console.log('error', error));21
1import リクエスト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}1415response = requests.request("PATCH", url, headers=headers, data=payload)1617印刷(レスポンス.text)18
1import リクエスト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}1415response = requests.request("PATCH", url, headers=headers, data=payload)1617印刷(レスポンス.text)18
1require "uri"2require "json"3require "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway/{gatewayName}")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910request = Net::HTTP::Patch.new(url)11リクエスト["x-api-key"] = "YOUR_API_KEY"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 = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910request = Net::HTTP::Patch.new(url)11リクエスト["x-api-key"] = "YOUR_API_KEY"12リクエスト["Content-Type"] = "application/json"13リクエスト.本文 = JSON.dump({14"isEnabled": true,15"isPrivate": true16})1718回答 = https.リクエスト(リクエスト)19レスポンスを格納する.read_body20