workflow.update

Updates a Workflow Record.

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

Usage Info

The Workflow represents a structured process or series of activities performed using the Subject Record data. This method allows the update of the workflow details when it has status CREATED and it's type BUSINESS_APPLICATION.

Use this method to update Business Application details of a workflow before it's started.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
workflow_idstringYesThe workflow id of the workflow record to be updated.
workflowobjectYesThe workflow parameter defined in the tables below.

Workflow Parameters

ParameterTypeRequiredDescription
detailsobjectDependsOne of the Workflow details objects. The table below maps the Workflow Type to the Workflow Details.

Workflow Type to Details Mapping

Workflow TypeWorkflow Details
BUSINESS_APPLICATIONBusiness Application Details

Business Application Details Parameters

ParameterTypeRequiredDescription
applying_userobjectNoThe object containing information about the applying user. This information is used for identification, communication, and authentication.
pricing_model_idstringNoThe ID of the pricing model to use. Different pricing models allow a single account to allow different rules for determining pricing. Pricing models are created during account setup and are optional.
equipment_collection_idstringNoThe ID of the equipment collection catalog to use. Equipment collections are created during account setup and is optional.
referrer_valuestringNoThe customer provided value to identify how application was referred, such as a marketplace, website, or sales person. This field is limited to 100 characters.

Applying User Parameters

ParameterTypeRequiredDescription
emailstringNoThe email address of the applying user. The email must be a validly formatted email address.
NOTE: Depending upon the account configuration, this email address may need to be unique for all Business-Application-type Workflows for the given account_id used on creation.
first_namestringNoThe first name of the applying user.
last_namestringNoThe last name of the applying user.

Examples

Updating a Business Application Workflow

{
  "account_id": "sb_j8gh53b",
  "workflow": {
    "type": "BUSINESS_APPLICATION",
    "subject_record_id": "sr_163Gh1ONk6BCHF9iYVDHcv",
    "details": {
      "business_application_details": {
        "applying_user": {
          "email": "[email protected]",
          "first_name": "Joe",
          "last_name": "Fette"
        },
        "referrer_value": "UAYACG123",
        "equipment_collection_id": "mock_id",
        "pricing_model_id": "mock_id"
      }
    }
  }
}

Response

Data

An empty data object is returned when the completion is successful.

Example

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

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
Invalid values provided.
ENTITY_NOT_FOUND400The pricing_model_id, or equipment_selection_id provided does not exist.
ACCOUNT_CONFIGURATION_VIOLATION400Account configuration rule violations are described below.

Account Configuration Violations

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

Entity TypeSub-codeDescription
WorkflowDUPLICATE_EMAILThe email address provided for the applying user is already in use by another Business-Application-type Workflow for the same account.

This error code is only returned when the account does not support multiple applications per email.