For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Customer Vetting Rule

Authentication

Include your Access-Token and x-api-key in the header of your requests.

Permissions

The external-api-update-compliance-rules permission is required to access this endpoint.

To retrieve the customer_rule_id before updating, use the List Customer Compliance Rules endpoint, which requires the external-api-compliance-rules permission.

Endpoint

URL: https://api.genlogs.io/customer-compliance-rules/{customer_rule_id} Method: PATCH

Updates the status and/or parameter values of an existing customer compliance rule. At least one of status or param_values must be provided.

Path Parameters

Parameter
Type
Required
Description

customer_rule_id

string (UUID)

Yes

Unique identifier of the customer compliance rule to update.

Request Body

Field
Type
Required
Description

status

string

No*

Rule status. Allowed values: enabled, disabled.

param_values

object

No*

Rule configuration values used during carrier evaluation.

* At least one of status or param_values must be provided.

Observed by GenLogs Validation

When updating the Observed by GenLogs rule, param_values is strictly validated before the update is processed.

Validation applies only to this external API endpoint. Internal GenLogs UI/API update flows are not affected.

date_interval

Must be a supported interval value:

  • 1_day

  • 7_days

  • 14_days

  • 1_month

  • 3_months

  • 6_months

  • 12_months

  • 18_months

  • 2_years

  • 3_years

  • 4_plus_years

decision_matrix

Must follow this structure:

Rules:

  • Only allowed keys: false, true

  • false must be review or fail

  • true must be pass

  • No extra keys are allowed

Valid combinations:

false

true

review

pass

fail

pass

fail_message

Must be a strict boolean (true or false).

Rejected examples:

  • "false" (string)

  • 0 (number)

pass_message

Must be a strict boolean (true or false).

Rejected examples:

  • "true" (string)

  • 1 (number)

Request Examples

Update status only

Update Observed by GenLogs rule — review when not observed

Responses

Status
Description

200 OK

Customer compliance rule updated successfully.

400 Bad Request

Invalid request body, missing required fields, or invalid param_values.

401 Unauthorized

Authentication credentials are missing or invalid.

403 Forbidden

User does not have the required permission.

404 Not Found

Customer compliance rule does not exist.

500 Internal Server Error

Server error while processing the request.

Response Body

200 OK

400 Bad Request

Returned when:

  • Neither status nor param_values is provided

  • param_values contains invalid Observed by GenLogs values

Missing update fields

Invalid date_interval

Invalid decision_matrix value

Invalid decision_matrix combination

Non-boolean message flags

401 Unauthorized

403 Forbidden

404 Not Found

Update customer compliance rule

patch

Updates the status and/or parameter values of an existing customer compliance rule. At least one of status or param_values must be provided. The authenticated company must have vetting access permissions.

Authorizations
Access-TokenstringRequired

JWT provided directly in the Access-Token header.

x-api-keystringRequired

API key provided by GenLogs.

Path parameters
customer_rule_idstring · uuidRequired

Unique identifier of the customer compliance rule.

Example: 8bafc1c4-3d2a-4c90-9e12-1c7c9c0f1a22
Body
anyOptional
or
anyOptional
Responses
200

Customer compliance rule updated successfully.

application/json
status_codestringOptionalExample: 200
messagestringOptionalExample: Success! The customer rule has been updated.
patch/customer-compliance-rules/{customer_rule_id}

Last updated