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

# Update an existing concept

Update an existing concept within 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": "concept",
      "description": "Knowledge Graph concept",
      "externalDocs": {
        "description": "A concept is a unit of knowledge within a FactNexus Knowledge Graph.",
        "url": "https://factnexus.com"
      }
    }
  ],
  "paths": {
    "/concept": {
      "put": {
        "tags": [
          "concept"
        ],
        "summary": "Update an existing concept",
        "description": "Update an existing concept within the knowledge graph.",
        "operationId": "updateConcept",
        "responses": {
          "200": {
            "description": "Successful update",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Concept"
                }
              }
            }
          },
          "400": {
            "description": "Invalid Concept object"
          },
          "404": {
            "description": "Concept not found"
          },
          "503": {
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "ApiKeyAuth": [
              "write:concepts",
              "read:concepts"
            ]
          }
        ],
        "requestBody": {
          "description": "Update an existing concept within the knowledge graph.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Concept"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Concept"
              }
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "About FactNexus, EKG and beth.ai",
    "url": "http://factnexus.com"
  },
  "components": {
    "schemas": {
      "Concept": {
        "x-swagger-router-model": "com.factnexus.ekg.model.Concept",
        "properties": {
          "conceptID": {
            "type": "string",
            "example": "@3782~6"
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "knowledge graph"
            }
          },
          "digest": {
            "type": "string",
            "example": "A knowledge graph is a digital structure that represents knowledge as concepts..."
          },
          "descriptorIDs": {
            "type": "array",
            "items": {
              "type": "string",
              "example": [
                "@3782~459",
                "@1~33104",
                "@3782~305"
              ]
            }
          }
        },
        "required": [
          "conceptID",
          "labels",
          "digest",
          "descriptorIDs"
        ],
        "type": "object"
      }
    },
    "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
    }
  }
}
```