consents

Record Consent

Record acceptance of a legal document version and return the entry; call this only after showing the user the document URL and version and receiving an explicit affirmative answer.

Without tenant_id it records the caller's own consent; with tenant_id it records on behalf of that tenant and needs level owner. Idempotent for an already-recorded document+version pair, which returns the existing record with a 200 instead of creating a duplicate.

post/v1/consents

Request

  • Base URL: https://api.4chems.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.4chems.com/v1/consents
  • Auth: HTTP bearer

Request body

document_codestring required
document_versionstring required
tenant_idstring uuid nullable

Record on behalf of this tenant (needs level owner). Omit to record the caller's own consent.

Response

Successful Response

idstring uuid required
subject_substring required
tenant_idstring uuid nullable
document_codestring required
document_versionstring required
granted_atstring date-time required
sourcestring required

Changes

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