---
updatedAt: 2026-01-28T20:52:08.000Z
agentTools:
  projectIndex: https://developer.vyasa.com/llms.txt
---

# Tag named entities within specific columns of a table

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Layar API Documentation",
    "version": "v1.927.2",
    "contact": {
      "name": "Certara AI Support",
      "email": "AI-Support@Certara.com",
      "url": "https://vyasa.readme.io/"
    }
  },
  "servers": [
    {
      "url": "BASE_PATH"
    }
  ],
  "paths": {
    "/layar/statement/{id}/namedEntity/tag": {
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "schema": {
            "type": "string"
          },
          "required": true
        }
      ],
      "post": {
        "operationId": "namedEntityTag",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatementNamedEntityCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "$ref": "#/components/schemas/Statement"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Tag named entities within specific columns of a table",
        "tags": [
          "statement",
          "namedEntity"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Named Entity",
      "name": "namedEntity"
    },
    {
      "description": "Statement",
      "name": "statement"
    }
  ],
  "components": {
    "schemas": {
      "NamedEntity": {
        "properties": {
          "columnKey": {
            "type": "string"
          },
          "concept": {
            "type": "string"
          },
          "pos": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "format": "int32",
                "type": "number"
              }
            }
          },
          "typeId": {
            "type": "string"
          }
        }
      },
      "Statement": {
        "properties": {
          "chemNerMetadata": {
            "type": "object"
          },
          "columnKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "columns": {
            "type": "object"
          },
          "dateIndexed": {
            "type": "string",
            "format": "date-time"
          },
          "detectedConcepts": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "detectedConceptsWithPosition": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DetectedConcept"
            }
          },
          "detectedTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "namedEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedEntity"
            }
          },
          "nounPhrasesJsonString": {
            "type": "string"
          },
          "posMetadataJsonString": {
            "type": "string"
          },
          "rawText": {
            "type": "string"
          },
          "similarity": {
            "type": "number",
            "format": "double"
          },
          "source": {
            "type": "string"
          },
          "startOffset": {
            "type": "integer",
            "format": "int64"
          },
          "taggedConcepts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggedConcept"
            }
          },
          "taggedRelationships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggedRelationship"
            }
          },
          "tweet": {
            "type": "object"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "LiveSourceType": {
        "title": "LiveSourceType",
        "enum": [
          "RSS",
          "WEBSITE",
          "TWITTER",
          "GCS",
          "GOOGLE_DRIVE",
          "S3",
          "GBQ_PROJECT",
          "GBQ_DATASET",
          "GBQ_FHIR_PROJECT",
          "NEO4J_CYPHER"
        ],
        "type": "string"
      },
      "SourceDocumentType": {
        "type": "string",
        "enum": [
          "DOCUMENT",
          "IMAGE",
          "IMAGE_GROUP",
          "WEBSITE",
          "RSS",
          "TABLE",
          "SDF"
        ]
      },
      "BaseSearchCommand": {
        "title": "BaseSearch",
        "type": "object",
        "properties": {
          "fromDate": {
            "format": "date-time",
            "type": "string",
            "description": "Starting date formatted as YYYY-MM-DD"
          },
          "q": {
            "type": "string",
            "description": "The query string to search for"
          },
          "rows": {
            "format": "int32",
            "type": "integer",
            "description": "The number of results to return"
          },
          "sort": {
            "type": "string",
            "description": "The result value to sort by"
          },
          "sortOrder": {
            "type": "string",
            "description": "The order to sort by (ex- 'ASC' or 'DESC')"
          },
          "start": {
            "format": "int32",
            "type": "integer",
            "description": "The index of the row to start returning values from"
          },
          "toDate": {
            "format": "date-time",
            "type": "string",
            "description": "Ending date formatted as YYYY-MM-DD"
          }
        }
      },
      "SourceDocumentSearchCommand": {
        "title": "SourceDocumentSearchCommand",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseSearchCommand"
          },
          {
            "type": "object",
            "properties": {
              "annotationSearches": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AnnotationSearch"
                }
              },
              "categoryIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "conceptIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "connectorId": {
                "type": "string"
              },
              "connectorIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "dataSourceTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "excludes": {
                "$ref": "#/components/schemas/SourceDocumentExcludeSearchCommand"
              },
              "filters": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FieldFilter"
                }
              },
              "filterOp": {
                "type": "string",
                "enum": [
                  "AND",
                  "OR"
                ]
              },
              "hasFields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "highlight": {
                "type": "boolean"
              },
              "highlightFragmentSize": {
                "type": "integer",
                "format": "int32"
              },
              "highlightNumberOfFragments": {
                "type": "integer",
                "format": "int32"
              },
              "highlightPostTag": {
                "type": "string"
              },
              "highlightPreTag": {
                "type": "string"
              },
              "ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "liveSourceId": {
                "type": "string"
              },
              "liveSourceIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "liveSourceTypes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LiveSourceType"
                }
              },
              "logSearch": {
                "type": "boolean"
              },
              "mimeTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "mustHaveAnnotations": {
                "type": "boolean"
              },
              "namedEntities": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/NamedEntity"
                }
              },
              "parentIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "paths": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "projectComputationId": {
                "type": "string"
              },
              "question": {
                "type": "string"
              },
              "savedListIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sectionSearches": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SectionSearch"
                }
              },
              "similarityDocumentId": {
                "type": "string"
              },
              "similarityThreshold": {
                "type": "number",
                "format": "float"
              },
              "sourceFields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "termOperator": {
                "type": "string",
                "enum": [
                  "AND",
                  "OR"
                ]
              },
              "terms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "trialData": {
                "type": "object"
              },
              "type": {
                "$ref": "#/components/schemas/SourceDocumentType"
              },
              "types": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SourceDocumentType"
                }
              },
              "userIds": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "vyasaClients": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      },
      "StatementNamedEntityCommand": {
        "title": "StatementNamedEntityCommand",
        "type": "object",
        "properties": {
          "columnKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ColumnDefinition": {
        "properties": {
          "conceptAssignment": {
            "$ref": "#/components/schemas/ConceptAssignment"
          },
          "dataType": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "order": {
            "format": "int64",
            "type": "integer"
          },
          "columnType": {
            "$ref": "#/components/schemas/DynamicColumnType"
          },
          "refColumnId": {
            "type": "string"
          },
          "search": {
            "$ref": "#/components/schemas/SourceDocumentSearchCommand"
          }
        },
        "title": "ColumnDefinition",
        "type": "object"
      },
      "Concept": {
        "properties": {
          "assignments": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "columnDefinitions": {
            "items": {
              "$ref": "#/components/schemas/ColumnDefinition"
            },
            "type": "array"
          },
          "columns": {
            "type": "object"
          },
          "conceptNameQueryTermVectorSimilarity": {
            "additionalProperties": {
              "format": "double",
              "type": "number"
            },
            "type": "object"
          },
          "conceptSource": {
            "enum": [
              "USER_DEFINED",
              "FAST_TEXT",
              "LEVENSHTEIN_DISTANCE",
              "WIKIDATA",
              "NEAREST_NEIGHBOR"
            ],
            "type": "string"
          },
          "conceptType": {
            "$ref": "#/components/schemas/ConceptType"
          },
          "conceptTypeId": {
            "type": "string"
          },
          "conceptVector": {
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": "array"
          },
          "cortexRelevanceScore": {
            "format": "double",
            "type": "number"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "crossQueryCounts": {
            "additionalProperties": {
              "format": "int32",
              "type": "integer"
            },
            "type": "object"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "dateUpdated": {
            "format": "date-time",
            "type": "string"
          },
          "documentId": {
            "type": "string"
          },
          "externalIds": {
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "isPrimarySynonym": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "savedLists": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sourceCount": {
            "format": "int32",
            "type": "integer"
          },
          "statementCount": {
            "format": "int32",
            "type": "integer"
          },
          "suggestedConceptType": {
            "$ref": "#/components/schemas/ConceptType"
          },
          "suggestedConceptTypeId": {
            "type": "string"
          },
          "suggestedConceptTypeRankings": {
            "type": "object"
          },
          "synonymOfId": {
            "type": "string"
          },
          "synonymSourceCount": {
            "format": "int32",
            "type": "integer"
          },
          "synonymStatementCount": {
            "format": "int32",
            "type": "integer"
          }
        },
        "title": "Concept",
        "type": "object"
      },
      "ConceptAssignment": {
        "properties": {
          "backupColumnKey": {
            "type": "string"
          },
          "columnKey": {
            "type": "string"
          },
          "conceptTypeId": {
            "type": "string"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "documentId": {
            "type": "string"
          },
          "externalIds": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "linkToTabluarData": {
            "type": "string"
          },
          "userId": {
            "format": "int64",
            "type": "integer"
          }
        },
        "title": "ConceptAssignment",
        "type": "object"
      },
      "TaggedRelationship": {
        "properties": {
          "answerEndOffset": {
            "format": "int64",
            "type": "integer"
          },
          "answerScore": {
            "format": "double",
            "type": "number"
          },
          "answerStartOffset": {
            "format": "int64",
            "type": "integer"
          },
          "concatenatedConceptIdsString": {
            "type": "string"
          },
          "conceptIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "evidenceStatementId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "leftConceptId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "relationship": {
            "type": "string"
          },
          "relationshipId": {
            "type": "string"
          },
          "rightConceptId": {
            "type": "string"
          }
        },
        "title": "TaggedRelationship",
        "type": "object"
      },
      "ConceptType": {
        "properties": {
          "color": {
            "type": "string"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "title": "ConceptType",
        "type": "object"
      },
      "DetectedConcept": {
        "properties": {
          "concept": {
            "$ref": "#/components/schemas/Concept"
          },
          "end": {
            "format": "int32",
            "type": "integer"
          },
          "start": {
            "format": "int32",
            "type": "integer"
          }
        },
        "title": "DetectedConcept",
        "type": "object"
      },
      "SourceDocumentExcludeSearchCommand": {
        "title": "SourceDocumentExcludeSearchCommand",
        "type": "object",
        "properties": {
          "annotationSearches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnnotationSearch"
            }
          },
          "categoryIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "conceptIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "connectorId": {
            "type": "string"
          },
          "connectorIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dataSourceTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hasFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "highlight": {
            "type": "boolean"
          },
          "highlightFragmentSize": {
            "type": "integer",
            "format": "int32"
          },
          "highlightNumberOfFragments": {
            "type": "integer",
            "format": "int32"
          },
          "highlightPostTag": {
            "type": "string"
          },
          "highlightPreTag": {
            "type": "string"
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "liveSourceId": {
            "type": "string"
          },
          "liveSourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "liveSourceTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSourceType"
            }
          },
          "logSearch": {
            "type": "boolean"
          },
          "mimeTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mustHaveAnnotations": {
            "type": "boolean"
          },
          "namedEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedEntity"
            }
          },
          "parentIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projectComputationId": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "savedListIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sectionSearches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SectionSearch"
            }
          },
          "similarityDocumentId": {
            "type": "string"
          },
          "similarityThreshold": {
            "type": "number",
            "format": "float"
          },
          "sourceFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "termOperator": {
            "type": "string",
            "enum": [
              "AND",
              "OR"
            ]
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "trialData": {
            "type": "object"
          },
          "type": {
            "$ref": "#/components/schemas/SourceDocumentType"
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SourceDocumentType"
            }
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "vyasaClients": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AnnotationSearch": {
        "title": "AnnotationSearch",
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "valueType": {
            "type": "string",
            "enum": [
              "STRING",
              "BOOLEAN",
              "INTEGER",
              "DOUBLE",
              "DATE"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "number"
                }
              ]
            }
          },
          "minValue": {
            "type": "integer"
          },
          "maxValue": {
            "type": "integer"
          },
          "minDateValue": {
            "format": "date-time",
            "type": "string"
          },
          "maxDateValue": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "SectionSearch": {
        "title": "SectionSearch",
        "type": "object",
        "properties": {
          "heading": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        }
      },
      "TaggedConcept": {
        "properties": {
          "conceptTypeId": {
            "type": "string"
          },
          "endOffset": {
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "startOffset": {
            "format": "int64",
            "type": "integer"
          }
        },
        "title": "TaggedConcept",
        "type": "object"
      },
      "DynamicColumnType": {
        "type": "string",
        "enum": [
          "DOC_COUNT",
          "STATEMENT_COUNT"
        ]
      },
      "FieldFilter": {
        "type": "object",
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "AND",
              "OR"
            ]
          },
          "conditions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "exists": {
                  "type": "boolean"
                },
                "minValue": {
                  "type": "number"
                },
                "maxValue": {
                  "type": "number"
                },
                "minDate": {
                  "format": "date-time",
                  "type": "string"
                },
                "maxDate": {
                  "format": "date-time",
                  "type": "string"
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "CONNECT_API_URL/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```