For the complete documentation index, see llms.txt. This page is also available as Markdown.

एक प्रमाणित एंटिटी हटाएं

प्रमाणित संस्था हटाएँ

DELETE https://api.iafcertsearch.org/api/client/v1/cb/ce/{company_id}

इस एंडपॉइंट की मदद से आप एक प्रमाणित संस्था और उसके प्रमाण पत्रों को हटा सकते हैं।

Headers

Name
Type
Description

Content-Type*

String

application/json

x-http-authorization*

String

https://iafcertsearch.org/import-management/api-integration से प्राप्त API कुंजी

उदाहरण: x-http-authorization: <<API KEY>>

{
  "data": 1
}
{
    "error": true,
    "timestamp": number (ईपोक समय),
    "elapse": number,
    "errors": {
      "message": "Invalid Session token has been used.",
      "code": "invalid_session_token"
    }
}
{
  "error": true,
  "timestamp": number (ईपोक समय),
  "elapse": number,
  "errors": {
    "message": "The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible.",
    "code": "not_found"
  }
}

प्रतिक्रिया डेटा उदाहरण देखने के लिए, प्रतिक्रिया विवरण के दाएं

आप इसे सैंडबॉक्स सर्वर पर टेस्ट करने के लिए https://api.sandbox.iafcertsearch.org/api/client/v1/cb/ce/{company_id} का उपयोग कर सकते हैं।

curl --location -g --request DELETE 'https://api.iafcertsearch.org/api/client/v1/cb/ce/{company_id}' \
--header 'Content-Type: application/json' \
--header 'x-http-authorization: <<API_KEY>>'
require "uri"
require "json"
require "net/http"

url = URI("https://api.iafcertsearch.org/api/client/v1/cb/ce/{company_id}")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Content-Type"] = "application/json"
request["x-http-authorization"] = "<<API_KEY>>"

response = https.request(request)
puts response.read_body
import http.client
import json

conn = http.client.HTTPSConnection("api.iafcertsearch.org")
payload = ''
headers = {
  'Content-Type': 'application/json',
  'x-http-authorization': '<<API_KEY>>'
}
conn.request("DELETE", "/api/client/v1/cb/ce/{company_id}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

Last updated