Praetorium game reference API V1 API

Read-only search and retrieval for the verified Warhammer 40,000 community reference used by Praetorium.

GitHub OpenAPI

Operations 10

GET /api/reference/v1/about Describe Praetorium and the agent workflow #
GET /api/reference/v1/ List reference kinds, factions, mission packs, rule documents, and revisions #
GET /api/reference/v1/search Search missions, rules, detachments, and datasheets #
GET /api/reference/v1/factions List factions in the reference #
GET /api/reference/v1/factions/{catalogueId}/units List compact roster-planning unit summaries in one bounded read #
GET /api/reference/v1/datasheets/{catalogueId}/{slug} Get one datasheet #
GET /api/reference/v1/detachments/{catalogueId}/{slug} Get one detachment #
GET /api/reference/v1/rules/{documentId}/{sectionId} Get one rules section #
GET /api/reference/v1/documents/{id} Get one search result document #
GET /api/reference/v1/records/{id} Get the structured record behind a reference document #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/praetorium-gg:praetorium-game-reference-api-v1-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

praetorium-gg-v1-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"Praetorium game reference API","version":"1.0.0","description":"Read-only search and retrieval for the verified Warhammer 40,000 community reference used by Praetorium."},"servers":[{"url":"http://praetorium.gg"}],"paths":{"/api/reference/v1/about":{"get":{"operationId":"getPraetoriumGuide","summary":"Describe Praetorium and the agent workflow","responses":{"200":{"description":"Praetorium guide","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductGuide"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}]}},"/api/reference/v1/":{"get":{"operationId":"getReferenceIndex","summary":"List reference kinds, factions, mission packs, rule documents, and revisions","responses":{"200":{"description":"Reference index","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceIndex"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}]}},"/api/reference/v1/search":{"get":{"operationId":"searchReference","summary":"Search missions, rules, detachments, and datasheets","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":120}},{"name":"kind","in":"query","schema":{"type":"string","description":"Comma-separated datasheet, deployment, detachment, disposition, mission, rule, terrain filters."}},{"name":"faction","in":"query","schema":{"type":"string","maxLength":160}},{"name":"pack","in":"query","schema":{"type":"string","maxLength":160}},{"name":"document","in":"query","schema":{"type":"string","maxLength":160}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":25,"default":10}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}],"responses":{"200":{"description":"Search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceSearchResponse"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/reference/v1/factions":{"get":{"operationId":"listFactions","summary":"List factions in the reference","responses":{"200":{"description":"Faction index","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactionIndex"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}]}},"/api/reference/v1/factions/{catalogueId}/units":{"get":{"operationId":"listFactionUnits","summary":"List compact roster-planning unit summaries in one bounded read","parameters":[{"name":"catalogueId","in":"path","required":true,"schema":{"type":"string"}},{"name":"battleSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000}},{"name":"detachment","in":"query","schema":{"type":"string","maxLength":160}},{"name":"nonMatchedPlay","in":"query","description":"Also list Legends and Crucible datasheets.","schema":{"type":"boolean","default":false}},{"name":"query","in":"query","description":"List only units whose name or keywords contain this text.","schema":{"type":"string","maxLength":160}},{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}],"responses":{"200":{"description":"Faction units","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitIndex"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/reference/v1/datasheets/{catalogueId}/{slug}":{"get":{"operationId":"getDatasheet","summary":"Get one datasheet","parameters":[{"name":"catalogueId","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}],"responses":{"200":{"description":"Datasheet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasheetRecord"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/reference/v1/detachments/{catalogueId}/{slug}":{"get":{"operationId":"getDetachment","summary":"Get one detachment","parameters":[{"name":"catalogueId","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}],"responses":{"200":{"description":"Detachment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachmentRecord"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/reference/v1/rules/{documentId}/{sectionId}":{"get":{"operationId":"getRuleSection","summary":"Get one rules section","parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sectionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}],"responses":{"200":{"description":"Rules section","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleSectionRecord"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/reference/v1/documents/{id}":{"get":{"operationId":"getReferenceDocument","summary":"Get one search result document","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}],"responses":{"200":{"description":"Reference document","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceDocument"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/reference/v1/records/{id}":{"get":{"operationId":"getReferenceRecord","summary":"Get the structured record behind a reference document","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["markdown"]}}],"responses":{"200":{"description":"Structured reference record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceRecord"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Reference data is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"string"}},"required":["error"]},"Revisions":{"type":"object","additionalProperties":{"type":"string"}},"Attribution":{"type":"array","items":{"type":"string"}},"ProductGuide":{"type":"object","additionalProperties":false,"properties":{"product":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"boundaries":{"type":"array","items":{"type":"string"}},"dataModel":{"type":"array","items":{"type":"string"}},"agentWorkflow":{"type":"array","items":{"type":"string"}}},"required":["product","capabilities","boundaries","dataModel","agentWorkflow"]},"ReferenceDocumentSummary":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"}},"required":["id","title","url"],"additionalProperties":false},"FactionSummary":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"datasheets":{"type":"integer","minimum":0,"maximum":9007199254740991},"detachments":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","slug","name","datasheets","detachments"],"additionalProperties":false},"ReferenceIndex":{"type":"object","properties":{"corpusRevision":{"type":"string"},"revisions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"kinds":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}},"factions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"datasheets":{"type":"integer","minimum":0,"maximum":9007199254740991},"detachments":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","slug","name","datasheets","detachments"],"additionalProperties":false}},"missionPacks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"}},"required":["id","title","url"],"additionalProperties":false}},"ruleDocuments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"sections":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string"}},"required":["id","slug","title","sections","url"],"additionalProperties":false}}},"required":["corpusRevision","revisions","kinds","factions","missionPacks","ruleDocuments"],"additionalProperties":false},"TextSources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["bsdata","game-datacards"]},"url":{"type":"string","format":"uri"},"id":{"type":"string"}},"required":["source","url"],"additionalProperties":false},"description":"Where withheld rules text lives upstream: the pinned file, its source, and the id of the record holding it there when the file has one. Fetch it there if you need the wording."},"ReferenceSection":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"textSources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["bsdata","game-datacards"]},"url":{"type":"string","format":"uri"},"id":{"type":"string"}},"required":["source","url"],"additionalProperties":false},"description":"Where withheld rules text lives upstream: the pinned file, its source, and the id of the record holding it there when the file has one. Fetch it there if you need the wording."}},"required":["id","title","text","url"],"additionalProperties":false},"ReferenceDocument":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["datasheet","deployment","detachment","disposition","mission","rule","terrain"]},"title":{"type":"string"},"faction":{"type":["string","null"]},"url":{"type":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"textSources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["bsdata","game-datacards"]},"url":{"type":"string","format":"uri"},"id":{"type":"string"}},"required":["source","url"],"additionalProperties":false},"description":"Where withheld rules text lives upstream: the pinned file, its source, and the id of the record holding it there when the file has one. Fetch it there if you need the wording."}},"required":["id","title","text","url"],"additionalProperties":false}},"revisions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"attribution":{"type":"array","items":{"type":"string"}}},"required":["id","kind","title","faction","url","sections","revisions","attribution"],"additionalProperties":false},"ReferenceSearchResult":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["datasheet","deployment","detachment","disposition","mission","rule","terrain"]},"title":{"type":"string"},"faction":{"type":["string","null"]},"url":{"type":"string"},"section":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"textSources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["bsdata","game-datacards"]},"url":{"type":"string","format":"uri"},"id":{"type":"string"}},"required":["source","url"],"additionalProperties":false},"description":"Where withheld rules text lives upstream: the pinned file, its source, and the id of the record holding it there when the file has one. Fetch it there if you need the wording."}},"required":["id","title","url"],"additionalProperties":false},"excerpt":{"type":"string","maxLength":322},"revisions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"attribution":{"type":"array","items":{"type":"string"}}},"required":["id","kind","title","faction","url","section","excerpt","revisions","attribution"],"additionalProperties":false},"ReferenceSearchResponse":{"type":"object","properties":{"query":{"type":"string"},"results":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["datasheet","deployment","detachment","disposition","mission","rule","terrain"]},"title":{"type":"string"},"faction":{"type":["string","null"]},"url":{"type":"string"},"section":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"textSources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["bsdata","game-datacards"]},"url":{"type":"string","format":"uri"},"id":{"type":"string"}},"required":["source","url"],"additionalProperties":false},"description":"Where withheld rules text lives upstream: the pinned file, its source, and the id of the record holding it there when the file has one. Fetch it there if you need the wording."}},"required":["id","title","url"],"additionalProperties":false},"excerpt":{"type":"string","maxLength":322},"revisions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"attribution":{"type":"array","items":{"type":"string"}}},"required":["id","kind","title","faction","url","section","excerpt","revisions","attribution"],"additionalProperties":false}},"revisions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"nextCursor":{"type":["string","null"]}},"required":["query","results","revisions","nextCursor"],"additionalProperties":false},"FactionIndex":{"type":"object","additionalProperties":false,"properties":{"factions":{"type":"array","items":{"$ref":"#/components/schemas/FactionSummary"}},"revisions":{"$ref":"#/components/schemas/Revisions"}},"required":["factions","revisions"]},"UnitSummary":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"group":{"type":"string"},"allied":{"type":"boolean"},"alliedFaction":{"type":["string","null"]},"points":{"type":["number","null"]},"limit":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"keywords":{"type":"array","items":{"type":"string"}},"composition":{"type":"array","items":{"type":"string"}},"costs":{"type":"array","items":{"type":"object","properties":{"models":{"type":"string"},"cost":{"type":"string"},"keyword":{"type":"string"},"faction":{"type":"string"},"detachment":{"type":"string"},"copies":{"type":"string"}},"required":["models","cost"],"additionalProperties":false}},"canLead":{"type":"array","items":{"type":"string"}},"canSupport":{"type":"array","items":{"type":"string"}},"canBeLedBy":{"type":"array","items":{"type":"string"}},"canBeSupportedBy":{"type":"array","items":{"type":"string"}},"url":{"type":["string","null"]},"referenceId":{"type":["string","null"]}},"required":["id","slug","name","group","allied","alliedFaction","points","limit","keywords","composition","costs","canLead","canSupport","canBeLedBy","canBeSupportedBy","url","referenceId"],"additionalProperties":false},"UnitIndex":{"type":"object","additionalProperties":false,"properties":{"faction":{"$ref":"#/components/schemas/FactionSummary"},"battleSize":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}]},"nonMatchedPlay":{"type":"boolean"},"query":{"anyOf":[{"type":"string"},{"type":"null"}]},"detachment":{"anyOf":[{"$ref":"#/components/schemas/Detachment"},{"type":"null"}]},"units":{"type":"array","items":{"$ref":"#/components/schemas/UnitSummary"}},"revisions":{"$ref":"#/components/schemas/Revisions"}},"required":["faction","battleSize","nonMatchedPlay","query","detachment","units","revisions"]},"ReferenceRecord":{"type":"object","additionalProperties":false,"properties":{"document":{"$ref":"#/components/schemas/ReferenceDocument"},"data":{"type":"object","additionalProperties":true}},"required":["document","data"]},"CanonicalFieldResolution":{"type":"object","additionalProperties":false,"properties":{"sources":{"type":"array","items":{"type":"string","enum":["definitions","points","rules","datacards","battlemaster"]}},"strategy":{"type":"string","enum":["single-source","sources-agree","merged","source-priority","fallback","unresolved"]}},"required":["sources","strategy"]},"DatasheetProfile":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"kind":{"type":"string","enum":["unit","ranged-weapon","melee-weapon","transport","rule","other"]},"count":{"type":"integer"},"values":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"value":{"type":"string"},"baseValue":{"type":"string"},"modifiers":{"type":"array","items":{"type":"string"}},"kind":{"type":"string"}},"required":["name","value","kind"]}}},"required":["id","name","type","kind","values"]},"Datasheet":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"slug":{"type":"string"},"referenceRoute":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"catalogueId":{"type":"string"},"slug":{"type":"string"}},"required":["catalogueId","slug"]},{"type":"null"}]},"name":{"type":"string"},"points":{"anyOf":[{"type":"number"},{"type":"null"}]},"keywords":{"type":"array","items":{"type":"string"}},"profiles":{"type":"array","items":{"$ref":"#/components/schemas/DatasheetProfile"}},"abilities":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"source":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["core","faction","datasheet","rule","upgrade","wargear"]}},"required":["id","name","description","kind"]}},"composition":{"type":"array","items":{"type":"string"}},"loadout":{"anyOf":[{"type":"string"},{"type":"null"}]},"wargearOptions":{"type":"array","items":{"type":"string"}},"wargearGroups":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"instruction":{"type":"string"},"options":{"type":"array","items":{"type":"string"}}},"required":["instruction","options"]}},"baseSize":{"anyOf":[{"type":"string"},{"type":"null"}]},"transport":{"anyOf":[{"type":"string"},{"type":"null"}]},"costs":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"models":{"type":"string"},"cost":{"type":"string"},"keyword":{"anyOf":[{"type":"string"},{"type":"null"}]},"faction":{"anyOf":[{"type":"string"},{"type":"null"}]},"detachment":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["models","cost","keyword","faction","detachment"]}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/DatasheetRelationship"}},"leaders":{"type":"array","items":{"$ref":"#/components/schemas/DatasheetRelationship"}},"supporters":{"type":"array","items":{"$ref":"#/components/schemas/DatasheetRelationship"}},"keywordRules":{"type":"array","items":{"$ref":"#/components/schemas/KeywordRule"}},"catalogueId":{"type":"string"},"faction":{"type":"string"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}]},"provenance":{"$ref":"#/components/schemas/DatasheetProvenance"}},"required":["id","slug","referenceRoute","name","points","keywords","profiles","abilities","composition","loadout","wargearOptions","baseSize","transport","costs","attachments","leaders","supporters","keywordRules","catalogueId","faction","attribution","provenance"]},"DatasheetRelationship":{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","enum":["leader","support"]},"name":{"type":"string"},"entryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"route":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"catalogueId":{"type":"string"},"slug":{"type":"string"}},"required":["catalogueId","slug"]},{"type":"null"}]}},"required":["name","entryId","route"]},"KeywordRule":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name","description"]},"DatasheetProvenance":{"type":"object","additionalProperties":false,"properties":{"definitions":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"string"},"entryId":{"type":"string"}},"required":["revision","entryId"]},"datacards":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"string"},"resolution":{"type":"string","enum":["external-reference","normalized-name"]}},"required":["revision","resolution"]},{"type":"null"}]},"rules":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"string"},"unitId":{"type":"string"},"resolution":{"type":"string","const":"external-reference"}},"required":["revision","unitId","resolution"]},{"type":"null"}]},"fields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CanonicalFieldResolution"}}},"required":["definitions","datacards","rules","fields"]},"Detachment":{"type":"object","additionalProperties":false,"properties":{"catalogueId":{"type":"string"},"faction":{"type":"string"},"factionSlug":{"type":"string"},"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"points":{"anyOf":[{"type":"number"},{"type":"null"}]},"dispositions":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"$ref":"#/components/schemas/NamedRule"}},"enhancements":{"type":"array","items":{"$ref":"#/components/schemas/PointedRule"}},"upgrades":{"type":"array","items":{"$ref":"#/components/schemas/PointedRule"}},"stratagems":{"type":"array","items":{"$ref":"#/components/schemas/Stratagem"}},"keywordRules":{"type":"array","items":{"$ref":"#/components/schemas/KeywordRule"}},"attribution":{"type":"string"},"provenance":{"type":"object","additionalProperties":false,"properties":{"definitions":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"string"},"detachmentId":{"type":"string"}},"required":["revision","detachmentId"]},"rules":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"string"}},"required":["revision"]},"datacards":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"string"}},"required":["revision"]}},"required":["definitions","rules","datacards"]}},"required":["catalogueId","faction","factionSlug","id","slug","name","points","dispositions","rules","enhancements","upgrades","stratagems","keywordRules","attribution","provenance"]},"NamedRule":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","description"]},"PointedRule":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"points":{"anyOf":[{"type":"number"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","points","description"]},"Stratagem":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"cp":{"type":"integer"},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"phases":{"type":"array","items":{"type":"string"}},"turn":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","cp","type","phases","turn","description"]},"RuleBlock":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","const":"prose"},"markup":{"type":"string"}},"required":["kind","markup"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","const":"heading"},"text":{"type":"string"}},"required":["kind","text"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","const":"clarification"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"anchor":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"markup":{"type":"string"}},"required":["kind","code","anchor","title","markup"]}]},"RuleSectionData":{"type":"object","additionalProperties":false,"properties":{"document":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"updated":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","title","updated"]},"section":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"entries":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"anchor":{"type":"string"},"title":{"type":"string"},"blocks":{"type":"array","items":{"$ref":"#/components/schemas/RuleBlock"}},"facts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"markup":{"type":"string"}},"required":["label","markup"]}},"cost":{"anyOf":[{"type":"number"},{"type":"null"}]},"lore":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","code","anchor","title","blocks","facts","cost","lore"]}}},"required":["id","slug","title","entries"]}},"required":["document","section"]},"DatasheetRecord":{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","const":"datasheet"},"canonicalUrl":{"type":"string"},"revisions":{"$ref":"#/components/schemas/Revisions"},"attribution":{"$ref":"#/components/schemas/Attribution"},"data":{"$ref":"#/components/schemas/Datasheet"}},"required":["kind","canonicalUrl","revisions","attribution","data"]},"DetachmentRecord":{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","const":"detachment"},"canonicalUrl":{"type":"string"},"revisions":{"$ref":"#/components/schemas/Revisions"},"attribution":{"$ref":"#/components/schemas/Attribution"},"data":{"$ref":"#/components/schemas/Detachment"}},"required":["kind","canonicalUrl","revisions","attribution","data"]},"RuleSectionRecord":{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","const":"rule"},"canonicalUrl":{"type":"string"},"revisions":{"$ref":"#/components/schemas/Revisions"},"attribution":{"$ref":"#/components/schemas/Attribution"},"data":{"$ref":"#/components/schemas/RuleSectionData"}},"required":["kind","canonicalUrl","revisions","attribution","data"]}}}}