Definition revisions

Retrieve a Definition Revision

Metadata for one immutable resolved document graph. Fetch its canonical content or individual source documents from the content endpoints.

GET
/definition_revisions/{definition_revision_id}

Metadata for one immutable resolved document graph. Fetch its canonical content or individual source documents from the content endpoints.

AuthorizationBearer <token>

Organization API key from the console (ak_...), or an OAuth access token with user:org:read, the organization selected during consent, and the capability required by the operation.

In: header

Path Parameters

definition_revision_id*string

Unique identifier for an immutable resolved Definition Revision.

Match^drev_[a-z0-9]{16}$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/definition_revisions/drev_6m1q8v4k2p9d7h3c"
{  "id": "drev_6m1q8v4k2p9d7h3c",  "object": "definition_revision",  "project_id": "prj_4f8k2m7x9q1v6b3n",  "definition_id": "def_2p8m4q7k1v9d6h3c",  "format": "openapi",  "document_count": 1,  "documents": [    {      "id": "doc_8q2m5v1k9p4d7h3c",      "role": "entrypoint",      "coordinate": "string",      "sha256": "string",      "size_bytes": 0    }  ],  "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",  "size_bytes": 0,  "source": {    "kind": "url",    "url": "http://example.com"  },  "created_at": "2019-08-24T14:15:22Z"}