Upload transaction, event or audit records to a policy

The owner's door into the central policy intake. Account session of the policy's POLICY_OWNER or SOURCE_CUSTODIAN; same-site JSON and an Idempotency-Key are required. The records are assessed and signed exactly as on /v1/assessments/{assessmentId}/records, and the upload is recorded on the policy's access chain. The findings stay with this policy, and its authors (the desk on a MANAGED policy) receive the findings case. Uploading changes no revision, so the uploader never becomes an author. A policy_id in the body must name this policy.

post/v1/policies/{policyId}/records

Request

  • Base URL: https://api.decionis.com
  • URL: https://api.decionis.com/v1/policies/{policyId}/records
  • Auth: API key in cookie decionis_account_session

Headers

Idempotency-Keystring

Request body

version'decionis.assessments.records/1' required
assessment_idstring uuid required
domain'commerce' | 'cards' | 'agents' required
kind'transaction' | 'event' | 'audit' required
platformstring required
as_ofstring date-time required
policy_idstring uuid

The policy the findings are for; its desk receives them. Without it they go to the workspace's commerce draft (a policy created MANAGED first, then a MANAGED one). Must name a commerce policy in the organization.

totalinteger nullable required
truncatedboolean required
recordsobject[]

Response

The findings already signed for these exact records.

version'decionis.assessments.records/1' required
assessment_idstring uuid required
domain'commerce' | 'cards' | 'agents' required
policy_idstring uuid nullable required

The policy the findings went to; null for the workspace's commerce draft.

receivedinteger required

Records received, before duplicates were dropped.

assessedinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.