workflow.defenseDocument.generate

Generate defense document for workflow.

POST http://api.kompliant.com/workflow.defenseDocument.generate (OpenAPI specification)

Usage Info

Generes a defense document for specific workflow_id.

This method is only supported for Workflows of type BUSINESS_UNDERWRITING.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
workflow_idstringYesThe unique identifier of the Workflow to generate defense document for.

Example

{
  "workflow_id": "w_7h1EpxerrZQyLnRC1EQ9Ck",
}

Response

Data

ParameterTypeDescription
defense_documentobjectThe defense document parameter defined in the table below.

Defense Documents Parameters

ParameterTypeDescription
defense_document_idstringThe identifier for the Defense document just created.

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_6zNzQZHSf26V83BO3uW6dS",
    "version": "2025-03-24"
  },
  "data": {
    "defense_document": {
      "defense_document_id": "wdd_7h1EpxerrZQyLnRC1EQ9Ck"
    }
  }
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
Invalid values provided.
ENTITY_NOT_FOUND400The workflow_id provided does not exist.
SYSTEM_RULE_VIOLATION400System rule violations are described below

System Rule Violations

When a SYSTEM_RULE_VIOLATION error occurs, the response will include additional entity_type and sub_code fields to provide more specific information:

Entity TypeSub-codeDescription
WorkflowINVALID_WORKFLOW_TYPEThe method is not supported for the current Workflow type.
Currently only BUSINESS_UNDERWRITING is supported.