---
agentTools:
  projectIndex: https://ekg.readme.io/llms.txt
---

# Upload a table

Upload a table, graph it and load it into the knowledge graph.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "servers": [
    {
      "url": "https://api.ekg.factnexus.com/{account}/{instance}/v1",
      "variables": {
        "account": {
          "default": "testaccount",
          "description": "FactNexus account name."
        },
        "instance": {
          "default": "testinstance",
          "description": "Target graph instance name."
        }
      }
    }
  ],
  "info": {
    "description": "This Server allows an application to interact directly with a FactNexus EKG Graph using REST API calls.",
    "version": "1.0.0",
    "title": "FactNexus EKG Graph API",
    "termsOfService": "https://factnexus.com/FactNexusComSaasTerms.html",
    "contact": {
      "email": "support@factnexus.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "tags": [
    {
      "name": "table",
      "description": "Table used for loading concepts to a FactNexus Knowledge Graph"
    }
  ],
  "paths": {
    "/table": {
      "post": {
        "tags": [
          "table"
        ],
        "summary": "Upload a table",
        "description": "Upload a table, graph it and load it into the knowledge graph.",
        "operationId": "table2Graph",
        "responses": {
          "202": {
            "description": "Successful table upload"
          },
          "400": {
            "description": "Invalid table file"
          },
          "409": {
            "description": "Busy loading to graph"
          }
        },
        "security": [
          {
            "ApiKeyAuth": [
              "write:concepts",
              "read:concepts"
            ]
          }
        ],
        "requestBody": {
          "description": "Upload a table, graph it and load it into the knowledge graph.",
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "About FactNexus, EKG and beth.ai",
    "url": "http://factnexus.com"
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 121,
      "2": 202,
      "3": 185,
      "4": 67,
      "5": 111,
      "6": 191,
      "7": 0,
      "8": 30,
      "9": 76,
      "10": 121,
      "11": 234
    }
  }
}
```