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

Update all Certifications

Update all Certifications

PUT https://api.iafcertsearch.org/api/client/v1/mncb/update-all-cert

This endpoint allows you to update all Certifications accredited by your Certification Bodies.

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": {
    "updating": true
  }
}
{
    "error": true,
    "timestamp": number (Epoch time),
    "elapse": number,
    "errors": {
      "message": "Invalid Session token has been used.",
      "code": "invalid_session_token"
    }
}

Take a look at how you might call this method:

curl --location --request PUT 'https://api.staging.iafcertsearch.org/api/client/v1/mncb/update-all-cert' \
--header 'Content-Type: application/json' \
--header 'x-http-authorization: <<API_KEY>>' \
--data ''
require "uri"
require "json"
require "net/http"

url = URI("https://api.staging.iafcertsearch.org/api/client/v1/mncb/update-all-cert")

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

request = Net::HTTP::Put.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.staging.iafcertsearch.org")
payload = ''
headers = {
  'Content-Type': 'application/json',
  'x-http-authorization': <<API_KEY>>
}
conn.request("PUT", "/api/client/v1/mncb/update-all-cert", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

Last updated