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", "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.그런 다음(응답 => response.text())19.그런 다음(결과 => console.log(result))20.catch(오류 => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.추가("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.그런 다음(응답 => response.text())19.그런 다음(결과 => console.log(result))20.catch(오류 => 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 = Net::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 = Net::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