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

Удаление сертификата

Удаление сертификации

DELETE https://api.iafcertsearch.org/api/client/v1/mncb/cert/{company_certifications_id}

Этот конечный пункт позволяет вам удалить сертификацию.

Headers

Name
Type
Description

Content-Type*

String

application/json

x-http-authorization*

String

Ключ API, полученный с https://iafcertsearch.org/import-management/api-integration

Пример:

x-http-authorization: <<API KEY>>

{
  "data": 1
}
{
    "error": true,
    "timestamp": число (время Epoch),
    "elapse": число,
    "errors": {
      "message": "Использован недействительный токен сеанса.",
      "code": "invalid_session_token"
    }
}
{
  "error": true,
  "timestamp": число (время Epoch),
  "elapse": число,
  "errors": {
    "message": "Запрошенный ресурс не найден, но может быть доступен снова в будущем. Последующие запросы клиента допустимы.",
    "code": "not_found"
  }
}

Чтобы посмотреть пример данных ответа, нажмите на правую стрелку справа от описания ответа.

Также вы можете использовать https://api.sandbox.iafcertsearch.org/api/client/v1/mncb/cert/{company_certifications_id} для тестирования на сервере Sandbox.

Посмотрите, как можно вызвать этот метод:

curl --location -g --request DELETE 'https://api.iafcertsearch.org/api/client/v1/mncb/cert/{company_certifications_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/mncb/cert/{company_certifications_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/mncb/cert/{company_certifications_id}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

Last updated