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

# Cancel a project computation job (hard stop)

# 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/projectComputation/{id}/cancel": {
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "schema": {
            "type": "string"
          },
          "required": true
        }
      ],
      "post": {
        "operationId": "cancelComputation",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectComputation"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Cancel a project computation job (hard stop)",
        "tags": [
          "projectComputation"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Project Computation",
      "name": "projectComputation"
    }
  ],
  "components": {
    "schemas": {
      "LiveSource": {
        "title": "Connector (All)",
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "connectorId": {
            "type": "string",
            "description": "Layar Connector ID"
          },
          "url": {
            "type": "string"
          },
          "liveSourceType": {
            "type": "string",
            "enum": [
              "AZURE",
              "DELL_ISILON",
              "FILE_SYSTEM",
              "GBQ_PROJECT",
              "GBQ_DATASET",
              "GCS",
              "GOOGLE_DRIVE",
              "GFHIRS_PROJECT",
              "IRODS",
              "JDBC_SNOWFLAKE",
              "JDBC_SAP_HANA",
              "JDBC_GENERIC",
              "NEO4J_CYPHER",
              "RSS",
              "S3",
              "TWITTER",
              "WEBSITE"
            ]
          },
          "description": {
            "type": "string"
          },
          "createdByUser": {
            "type": "string",
            "readOnly": true
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string",
            "readOnly": true
          }
        }
      },
      "NamedEntity": {
        "properties": {
          "columnKey": {
            "type": "string"
          },
          "concept": {
            "type": "string"
          },
          "pos": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "format": "int32",
                "type": "number"
              }
            }
          },
          "typeId": {
            "type": "string"
          }
        }
      },
      "Annotation": {
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "valueString": {
            "type": "string"
          },
          "valueDouble": {
            "format": "float",
            "type": "number"
          },
          "valueBoolean": {
            "type": "boolean"
          },
          "valueInteger": {
            "format": "int64",
            "type": "integer"
          },
          "valueDate": {
            "format": "date-time",
            "type": "string"
          },
          "valueType": {
            "enum": [
              "STRING",
              "BOOLEAN",
              "INTEGER",
              "LONG",
              "DOUBLE",
              "DATE"
            ],
            "type": "string"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          }
        },
        "title": "Annotation",
        "type": "object"
      },
      "JobStatus": {
        "title": "JobStatus",
        "enum": [
          "RUNNING",
          "COMPLETE",
          "ERROR",
          "CANCELED"
        ],
        "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"
                }
              }
            }
          }
        ]
      },
      "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"
      },
      "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"
      },
      "ProjectComputation": {
        "properties": {
          "computationMode": {
            "enum": [
              "TRAINING",
              "EXECUTING"
            ],
            "type": "string"
          },
          "computationParameters": {
            "type": "object"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "sourceDocument": {
            "$ref": "#/components/schemas/SourceDocument"
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          }
        },
        "title": "ProjectComputation",
        "type": "object"
      },
      "SourceDocument": {
        "properties": {
          "appendToExisting": {
            "type": "boolean"
          },
          "annotations": {
            "items": {
              "$ref": "#/components/schemas/Annotation"
            },
            "type": "array"
          },
          "cortexDocumentType": {
            "$ref": "#/components/schemas/SourceDocumentType"
          },
          "columnDefinitions": {
            "items": {
              "$ref": "#/components/schemas/ColumnDefinition"
            },
            "type": "array"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "datePublished": {
            "format": "date-time",
            "type": "string"
          },
          "documentURI": {
            "type": "string"
          },
          "entityCount": {
            "format": "int64",
            "type": "integer"
          },
          "embedders": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "externalIds": {
            "type": "object"
          },
          "file": {
            "format": "byte",
            "type": "string"
          },
          "hasVector": {
            "type": "boolean"
          },
          "highlightedText": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "liveSource": {
            "$ref": "#/components/schemas/LiveSource"
          },
          "matchedTerms": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "mimeType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "namedEntities": {
            "items": {
              "$ref": "#/components/schemas/NamedEntity"
            },
            "type": "array"
          },
          "objectKey": {
            "type": "string"
          },
          "parentSourceDocumentId": {
            "type": "string"
          },
          "projectComputationId": {
            "type": "string"
          },
          "projects": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "provider": {
            "type": "string"
          },
          "rawText": {
            "type": "string"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SectionSearch"
            },
            "type": "array"
          },
          "source": {
            "type": "string"
          },
          "statementCount": {
            "format": "int64",
            "type": "integer"
          },
          "suggestedCategoryId": {
            "type": "string"
          },
          "suggestedCategoryIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "suggestedCategoryRankings": {
            "type": "object"
          },
          "summary": {
            "type": "string"
          },
          "tabularBasedOnFileName": {
            "type": "boolean"
          },
          "trialData": {
            "type": "object"
          },
          "thumbnailAvailable": {
            "type": "boolean"
          },
          "url": {
            "type": "string"
          }
        },
        "title": "SourceDocument",
        "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"
          }
        }
      },
      "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
  }
}
```