Delete a Certification
Delete a Certification
DELETE https://api.iafcertsearch.org/api/client/v2/mncb/cert/{certification_id}
This endpoint allows you to delete a certification.
Headers
Name
Type
Description
x-http-authorization*
String
API Key received from https://iafcertsearch.org/import-management/api-integration
Example:
x-http-authorization: <<API KEY>>
Content-Type*
String
application/json
{
"data": 1
}{
"error": true,
"timestamp": number (Epoch time),
"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"
}
}Take a look at how you might call this method:
curl --location -g --request DELETE 'https://api.iafcertsearch.org/api/client/v2/mncb/cert/{certification_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/v2/mncb/cert/{certification_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_bodyimport 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/v2/mncb/cert/{certification_id}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))Last updated