Lewati ke konten
The Consortium

Risks Index APIOperational

grx_industry_build

Build the industry composite on your own data

Request

Coba

Available · MCP tool grx.industry_build · No credits

https://api.risksindex.com

POST/v1/industries/{industry}/build

curl -s -X POST "https://api.risksindex.com/v1/industries/<industry>/build" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <a-unique-key-per-attempt>" \
  -d '{}'
const res = await fetch("https://api.risksindex.com/v1/industries/<industry>/build", { method: "POST", headers: { "Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>" }, body: "{}" });
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/industries/<industry>/build", data="{}".encode(), method="POST", headers={"Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>"})
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "design": {},
    "quality": [
      "…"
    ],
    "results": [
      "…"
    ],
    "replication": {},
    "warnings": [
      "string"
    ]
  },
  "meta": {
    "authority": "string",
    "state": "string",
    "provenance": "…",
    "coverage": {
      "status": "full",
      "records": 0,
      "dimensions": {}
    },
    "review": {}
  }
}

The composite builder pre-configured for the industry: send units with values keyed by NIS-1 indicator id from the industry's indicator set; polarity, goalposts, weights, pillars and the method parameters come from the builder configuration and can be overridden in design and uncertainty. Illustrative, on your data, never an Index value, rating or advice. Open over HTTP; over MCP only with a Passport token. Availability: Available.

Parameters

Parameters

  • industryrequired

    path · string

    ISIC Rev.5 code

  • Idempotency-Keyoptional

    header · string

    Optional. A value of your own (a UUID is fine) that makes this write safe to retry: the same caller, key and request within 24 hours gets the first answer again, with the header Idempotent-Replayed: true, and the work is not done twice. It applies to a request that carries a credential.

Answers

Responses

  • 200

    Records with provenance, coverage and links

  • 400Problem, RFC 9457

    Bad request body. Codes: BAD_BUILD, BAD_HAZARD, BAD_INDICATOR, BAD_INDUSTRY, BAD_JSON, BAD_JURISDICTION, BAD_REGIME, BAD_REGION, BAD_RISK, BAD_SINCE

  • 401

  • 404Problem, RFC 9457

    Not found. Codes: NOT_FOUND

  • 409

  • 413Problem, RFC 9457

    Body too large. Codes: TOO_LARGE

  • 414

  • 422

  • 429Problem, RFC 9457

    Rate limited. Codes: RATE_LIMITED

  • 500Problem, RFC 9457

    Internal error. Codes: INTERNAL

Mulai

Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.