{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cognite 3D Asset Mapping Engineering diagrams API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Engineering diagrams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Detect annotations in engineering diagrams",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/context/diagram/detect",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "\n\n> **Required capabilities:** `assetsAcl:READ` `filesAcl:READ`\n\nDetect annotations in engineering diagrams. Note: All users in a CDF project with assets read-all and files read access to the requested files can access data sent to this endpoint.\nSupported input file mime_types are application/pdf, image/jpeg, image/png, image/tiff. Also note that the header of a successful response contains an `X-Job-Token` which allows to fetch the result of the\njob at `/context/diagram/detect/{jobId}` without"
        },
        {
          "info": {
            "name": "Retrieve engineering diagram detect results",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/context/diagram/detect/:jobId",
            "params": [
              {
                "name": "jobId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "\n\n> **Required capabilities:** `assetsAcl:READ` `filesAcl:READ`\n\nGet the results from an engineering diagram detect job. Providing the `X-Job-Token` header returned by the\n`/context/diagram/detect` endpoint is required unless the caller has read access to all assets. Results are available for 30 days following the completion of the detect job."
        },
        {
          "info": {
            "name": "Convert a diagram to image format",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/context/diagram/convert",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "\n\n> **Required capabilities:** `assetsAcl:READ` `filesAcl:READ`\n\nConvert interactive engineering diagrams to image format, with highlighted annotations.\nSupported input file mime_types are application/pdf, image/jpeg, image/png, image/tiff.\nSupported output image formats are PNG and SVG, only the svg embeds the input annotations."
        },
        {
          "info": {
            "name": "Get the results for converting an engineering diagram to an image",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/context/diagram/convert/:jobId",
            "params": [
              {
                "name": "jobId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "\n\n> **Required capabilities:** `assetsAcl:READ` `filesAcl:READ`\n\nGet the results for converting an engineering diagram to SVG and PNG formats."
        }
      ]
    }
  ],
  "bundled": true
}