Replaces the full payload of an existing access record. The record identified
by ak must have been registered by the authenticated Data User.
This is a full replacement — the entire AccessRecord body must be supplied.
The ak, duid, created-at, and record-metadata.record-identifier are
preserved from the original; all other fields are replaced with the submitted
payload.
Use this to:
Refresh a consent record when the customer renews (e.g. update expiry
or notice-version). To update identity verification evidence, update
the linked Identity Record via POST /identity-records and update
record-metadata.identity-record-ref to the new ir key.
Correct an error in a submitted record
Update processing.purpose or data-types after a scope change
State constraint: Only ACTIVE records may be replaced. Attempting to
replace a REVOKED or EXPIRED record returns 409.
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
Authorizations
Authorization
string
header
required
JWT from GET /auth/token. Pass as Authorization: Bearer <token>. Expires after 7200s.
Path Parameters
ak
string
required
The access key of the record to replace.
Unique opaque identifier for an access record, issued by the register on creation. Treat as a secret — possession enables access verification.
Pattern: ^ak_[0-9a-f]{24}$
Example:
"ak_691df0c788ca043403b7fa90"
Body
application/json
Full AccessRecord replacement payload.
A data access record covering all lawful bases. The same schema is used
regardless of processing.legal-basis. The notice field and
access-event.consent sub-object are null for non-consent records and
populated for consent records.
record-metadata
object
required
ISO 27560 Section 1 — Record Metadata
record-identifier and created-at are assigned by the register on creation
and returned in responses; they must not be supplied in request bodies.
identity-record-ref links this access record to the Identity Record that
holds the person-property relationship (PII principal, move-in date, address,
and identity verification evidence). Supply the ir key returned when the
Identity Record was created. The linked Identity Record must have been
registered by the same authenticated Data User.
identity-record-ref is required when registering a new Access Record in the standard flow. It may be omitted when a reidentification-token is supplied in the POST /access-records request body — the register resolves the ir internally from the validated token.
Show child attributes
notice
object | null
required
Populated for consent-based records; null for all other legal bases.
Show child attributes
processing
object
required
ISO 27560 Section 3 — Processing Fields
Defines the shared scope and legal basis of data access. These fields apply
to the access registration as a whole regardless of how many controllers
are involved.
Per-controller compliance fields — privacy-rights-url, lia-reference,
statutory-reference, and storage-conditions — are held on each
Controller entry within record-metadata.controller-arrangement, where
each controller bears individual accountability.
legal-basis applies to all controllers in the arrangement. For joint
arrangements, all controllers must share the same legal basis — if purposes
or bases differ, separate Access Records are required.
Show child attributes
access-event
object
required
ISO 27560 Section 4 — Access Event Fields
Records when access was registered, its lifecycle state and duration, and
(for consent records) the specific details of how consent was expressed.
registered-at serves as the canonical event timestamp for all record types —
for consent records it is the date the customer gave consent; for non-consent
records it is the date the Controller registered their access.
revoked-at is set by the register on revocation and must not be supplied
in request bodies.
consent is required when legal-basis is uk-consent or uk-explicit-consent. It must be omitted or null for all other legal bases (uk-public-task, uk-legitimate-interests, uk-legal-obligation, uk-contract).
Show child attributes
reidentification-token
string | null
Cross-DUID only. A confirmed token-ref obtained via POST /identity-records/reidentify. When supplied, identity-record-ref in record-metadata must be omitted — the register resolves the ir internally. The token is single-use, scoped to the initiating Data User, and expires one hour after issuance.
Response
Access record replaced successfully.
response
object
required
Show child attributes
access-token
object
required
The access token issued on successful registration. Pass to Data Providers to enable access verification.
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{
"response": {
"resource": "/v1/access-records/ak_691df0c788ca043403b7fa90",
"timestamp": "2026-03-11T12:00:00Z",
"transaction-id": "tid_691df0c788ca043403b7fa90"
},
"errors": [
{
"error-code": "VAL001",
"message": "Field 'mpxn' does not match the required pattern."
}
]
}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Auth Energy","colors":{"primary":"#0D3373","light":"#07C983","dark":"#07C983"},"logo":{"light":"https://mintcdn.com/authenergy/SU_OvKbS5HOjt3t_/images/logo-black.png?fit=max\u0026auto=format\u0026n=SU_OvKbS5HOjt3t_\u0026q=85\u0026s=9d60280d9cee1921b21736e5863158bb","dark":"https://mintcdn.com/authenergy/SU_OvKbS5HOjt3t_/images/logo-white.png?fit=max\u0026auto=format\u0026n=SU_OvKbS5HOjt3t_\u0026q=85\u0026s=256ed676ad30bef9635332cf3e19738c","href":"https://auth.energy/"},"favicon":{"light":"https://mintcdn.com/authenergy/SU_OvKbS5HOjt3t_/images/logo-black.png?fit=max\u0026auto=format\u0026n=SU_OvKbS5HOjt3t_\u0026q=85\u0026s=9d60280d9cee1921b21736e5863158bb","dark":"https://mintcdn.com/authenergy/SU_OvKbS5HOjt3t_/images/logo-white.png?fit=max\u0026auto=format\u0026n=SU_OvKbS5HOjt3t_\u0026q=85\u0026s=256ed676ad30bef9635332cf3e19738c"},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/authenergy"}},"styling":{"eyebrows":"section","codeblocks":"system","latex":true},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"authenergy","hasAudioNarration":false,"actualSubdomain":"authenergy","customDomains":["docs.auth.energy"],"gitSource":{"type":"github","owner":"authenergy","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afb2d6147e323061a49b0be","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Data Access Register","count":32},{"language":"default","tag":"Documents","count":13},{"language":"default","tag":"Data Users","count":5},{"language":"default","tag":"Identity Records","count":5},{"language":"default","tag":"Re-identification","count":5},{"language":"default","tag":"Webhooks","count":4},{"language":"default","tag":"Consumer Consent Solution","count":3},{"language":"default","tag":"Flexibility Market Assets","count":2},{"language":"default","tag":"Home","count":2},{"language":"default","tag":"Data Providers","count":2}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/data-users/replace-an-access-record","slug":"/api-reference/data-users/replace-an-access-record","pageMetadata":{"title":"Replace an Access Record","description":"Replaces the full payload of an existing access record. The record identified\nby `ak` must have been registered by the authenticated Data User.\n\nThis is a full replacement — the entire `AccessRecord` body must be supplied.\nThe `ak`, `duid`, `created-at`, and `record-metadata.record-identifier` are\npreserved from the original; all other fields are replaced with the submitted\npayload.\n\nUse this to:\n- Refresh a consent record when the customer renews (e.g. update `expiry`\n or `notice-version`). To update identity verification evidence, update\n the linked Identity Record via `POST /identity-records` and update\n `record-metadata.identity-record-ref` to the new `ir` key.\n- Correct an error in a submitted record\n- Update `processing.purpose` or `data-types` after a scope change\n\n**State constraint:** Only `ACTIVE` records may be replaced. Attempting to\nreplace a `REVOKED` or `EXPIRED` record returns `409`.\n","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml put /access-records/{ak}","href":"/api-reference/data-users/replace-an-access-record","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Replaces the full payload of an existing access record. The record identified\\nby \", _jsx(_components.code, {\n children: \"ak\"\n }), \" must have been registered by the authenticated Data User.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"This is a full replacement — the entire \", _jsx(_components.code, {\n children: \"AccessRecord\"\n }), \" body must be supplied.\\nThe \", _jsx(_components.code, {\n children: \"ak\"\n }), \", \", _jsx(_components.code, {\n children: \"duid\"\n }), \", \", _jsx(_components.code, {\n children: \"created-at\"\n }), \", and \", _jsx(_components.code, {\n children: \"record-metadata.record-identifier\"\n }), \" are\\npreserved from the original; all other fields are replaced with the submitted\\npayload.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Use this to:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Refresh a consent record when the customer renews (e.g. update \", _jsx(_components.code, {\n children: \"expiry\"\n }), \"\\nor \", _jsx(_components.code, {\n children: \"notice-version\"\n }), \"). To update identity verification evidence, update\\nthe linked Identity Record via \", _jsx(_components.code, {\n children: \"POST /identity-records\"\n }), \" and update\\n\", _jsx(_components.code, {\n children: \"record-metadata.identity-record-ref\"\n }), \" to the new \", _jsx(_components.code, {\n children: \"ir\"\n }), \" key.\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Correct an error in a submitted record\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Update \", _jsx(_components.code, {\n children: \"processing.purpose\"\n }), \" or \", _jsx(_components.code, {\n children: \"data-types\"\n }), \" after a scope change\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"State constraint:\"\n }), \" Only \", _jsx(_components.code, {\n children: \"ACTIVE\"\n }), \" records may be replaced. Attempting to\\nreplace a \", _jsx(_components.code, {\n children: \"REVOKED\"\n }), \" or \", _jsx(_components.code, {\n children: \"EXPIRED\"\n }), \" record returns \", _jsx(_components.code, {\n children: \"409\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Replace an Access Record","description":"Replaces the full payload of an existing access record. The record identified\nby `ak` must have been registered by the authenticated Data User.\n\nThis is a full replacement — the entire `AccessRecord` body must be supplied.\nThe `ak`, `duid`, `created-at`, and `record-metadata.record-identifier` are\npreserved from the original; all other fields are replaced with the submitted\npayload.\n\nUse this to:\n- Refresh a consent record when the customer renews (e.g. update `expiry`\n or `notice-version`). To update identity verification evidence, update\n the linked Identity Record via `POST /identity-records` and update\n `record-metadata.identity-record-ref` to the new `ir` key.\n- Correct an error in a submitted record\n- Update `processing.purpose` or `data-types` after a scope change\n\n**State constraint:** Only `ACTIVE` records may be replaced. Attempting to\nreplace a `REVOKED` or `EXPIRED` record returns `409`.\n","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml put /access-records/{ak}","href":"/api-reference/data-users/replace-an-access-record","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"replaceAccessRecord","summary":"Replace an Access Record","description":"Replaces the full payload of an existing access record. The record identified\nby `ak` must have been registered by the authenticated Data User.\n\nThis is a full replacement — the entire `AccessRecord` body must be supplied.\nThe `ak`, `duid`, `created-at`, and `record-metadata.record-identifier` are\npreserved from the original; all other fields are replaced with the submitted\npayload.\n\nUse this to:\n- Refresh a consent record when the customer renews (e.g. update `expiry`\n or `notice-version`). To update identity verification evidence, update\n the linked Identity Record via `POST /identity-records` and update\n `record-metadata.identity-record-ref` to the new `ir` key.\n- Correct an error in a submitted record\n- Update `processing.purpose` or `data-types` after a scope change\n\n**State constraint:** Only `ACTIVE` records may be replaced. Attempting to\nreplace a `REVOKED` or `EXPIRED` record returns `409`.\n","tags":["Data Users"],"security":["cbbd7edf-9716-4bd1-bb31-56bde34291f1"],"parameters":["58439247-edff-45a9-bb15-e50d084f1f4c"],"requestBody":"6bb1dec7-8746-4aba-a424-820146103129","responses":{"200":"9c08afc1-d8e0-4917-8bf1-f36f731894a5","400":"a7dfad3b-a793-4826-aa63-c144e68e8d3c","401":"18f15db4-f744-4aae-9b90-c4ed061c8c87","403":"334fe817-4325-47f9-a39d-c47f060f46aa","404":"35fca45e-3e41-49c9-b1d2-a9b6e5ec6db4","409":"c5ad8ba7-b57a-4eec-8b63-41dc92659e09","500":"1f496737-9e11-431d-b2fb-ee7b6241396f"},"method":"put","type":"path","servers":["019bb311-53bf-46db-af2b-1270792ad179"],"path":"/access-records/{ak}","baseUrlOptions":["https://api.central.consent/v1"],"title":"Replace an Access Record","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"58439247-edff-45a9-bb15-e50d084f1f4c":{"name":"ak","in":"path","description":"The access key of the record to replace.","required":true,"schema":{"type":"string","pattern":"^ak_[0-9a-f]{24}$","description":"The access key of the record to replace.\nUnique opaque identifier for an access record, issued by the register on creation. Treat as a secret — possession enables access verification.\n","example":"ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"description":"Full AccessRecord replacement payload.","required":true,"content":{"application/json":{"schema":{"type":"object","description":"A data access record covering all lawful bases. The same schema is used\nregardless of `processing.legal-basis`. The `notice` field and\n`access-event.consent` sub-object are null for non-consent records and\npopulated for consent records.\n","properties":{"record-metadata":{"type":"object","description":"**ISO 27560 Section 1 — Record Metadata**\n\n`record-identifier` and `created-at` are assigned by the register on creation\nand returned in responses; they must not be supplied in request bodies.\n\n`identity-record-ref` links this access record to the Identity Record that\nholds the person-property relationship (PII principal, move-in date, address,\nand identity verification evidence). Supply the `ir` key returned when the\nIdentity Record was created. The linked Identity Record must have been\nregistered by the same authenticated Data User.\n\n\n`identity-record-ref` is required when registering a new Access Record in the standard flow. It may be omitted when a `reidentification-token` is supplied in the `POST /access-records` request body — the register resolves the `ir` internally from the validated token.","properties":{"schema-version":{"type":"string","description":"Version of the schema profile this record conforms to.","example":"1.0","isRequired":true,"uniqueKey":"record-metadata.schema-version","typeLabel":"string"},"controller-arrangement":{"type":"object","description":"**ISO 27560 Section 1 — Controller Arrangement**\n\nDescribes the controller(s) accountable for this access record. Supports\nthree arrangement types:\n\n**`sole`** — single controller. `controllers` has exactly one entry with\n`role: sole`. `art26-reference` must be null.\n\n**`joint`** — two or more legally distinct controllers jointly determining\nthe purposes and means of processing (UK GDPR Art. 26). Exactly one entry\nmust carry `role: lead`; all others carry `role: joint`. `art26-reference`\nis required and must point to the inter-controller arrangement document.\nEach controller should supply their own `privacy-rights-url`, `lia-reference`,\nand `statutory-reference` as applicable.\n\n**`group`** — one accountable lead plus trading names or subsidiaries listed\nfor customer transparency. Exactly one entry carries `role: lead`; all others\ncarry `role: member`. `art26-reference` must be null. Per-controller\ncompliance fields are only required on the lead entry.\n\nIn all cases the customer can exercise their GDPR rights against any\ncontroller listed — the `contact-url` and `privacy-rights-url` on each\nentry (where present) are shown in the Customer Portal.\n","properties":{"arrangement-type":{"type":"string","description":"The nature of the controller arrangement for this access record.\n\n- `sole` — a single Data Controller bears full GDPR accountability.\n- `joint` — two or more legally distinct Data Controllers jointly determine\n the purposes and means of processing under UK GDPR Art. 26. An\n `art26-reference` pointing to their inter-controller arrangement must\n be supplied. Each controller holds individual accountability.\n- `group` — one accountable lead controller plus one or more trading names\n or subsidiaries listed purely for customer transparency, so customers\n recognise the brands accessing their data. The lead bears all GDPR\n accountability; members inherit it. No Art. 26 arrangement required.\n","enum":["sole","joint","group"],"isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.arrangement-type","typeLabel":"enum\u003cstring>"},"controllers":{"type":"array","minItems":1,"description":"The controller entries for this arrangement. Must contain exactly one `lead` (or `sole`) entry. Joint arrangements require at least two entries.\n","items":{"type":"object","description":"A single controller entry within a `ControllerArrangement`. The `role` field determines its position in the arrangement. Per-controller compliance fields (`privacy-rights-url`, `lia-reference`, `statutory-reference`, `storage-conditions`) are required on `sole` and `lead` entries; optional on `joint` entries (where each controller should hold their own); and omitted on `member` entries (which inherit from the lead).\n","properties":{"name":{"type":"string","maxLength":255,"description":"Trading name of the Controller organisation.","example":"Bright Energy Ltd","isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].name","typeLabel":"string"},"role":{"type":"string","description":"Role of this controller entry within the arrangement.\n\n- `sole` — the only controller. Only valid when `arrangement-type` is `sole`.\n- `lead` — the primary accountable controller. Required in `joint` and `group`\n arrangements; exactly one entry must carry this role.\n- `joint` — a co-controller sharing Art. 26 accountability. Only valid when\n `arrangement-type` is `joint`.\n- `member` — a trading name or subsidiary listed for customer transparency.\n Only valid when `arrangement-type` is `group`. Inherits accountability\n from the lead.\n","enum":["sole","lead","joint","member"],"isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"contact-url":{"type":"string","format":"uri","description":"URL of the Controller's customer-facing contact or privacy page.","example":"https://bright-energy.com/contact","isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].contact-url","typeLabel":"string\u003curi>"},"address":{"type":"object","properties":{"addressLine1":{"type":"string","maxLength":100,"example":"221B Baker Street","isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.addressLine1","typeLabel":"string"},"townCity":{"type":"string","maxLength":100,"example":"London","isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.townCity","typeLabel":"string"},"postcode":{"type":"string","pattern":"^[A-Z]{1,2}[0-9][0-9A-Z]? ?[0-9][A-Z]{2}$","example":"NW1 6XE","isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.postcode","typeLabel":"string"},"addressLine2":{"oneOf":[{"type":"string","maxLength":100,"example":"Marylebone","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.addressLine2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"example":"Marylebone","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.addressLine2.oneOf.1","typeLabel":"null"}],"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.addressLine2","typeLabel":"string | null"},"county":{"oneOf":[{"type":"string","maxLength":100,"example":"Greater London","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.county.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"example":"Greater London","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.county.oneOf.1","typeLabel":"null"}],"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address.county","typeLabel":"string | null"}},"required":["addressLine1","townCity","postcode"],"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].address","typeLabel":"object"},"privacy-rights-url":{"type":"string","format":"uri","description":"URL of this Controller's data subject rights page. Required by GDPR Art. 13(2)(b)/(c). Required on `sole` and `lead` entries. Optional on `joint` entries (where each controller should supply their own). Omitted on `member` entries — customers are directed to the lead's URL.\n","example":"https://bright-energy.com/your-rights","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].privacy-rights-url","typeLabel":"string\u003curi>"},"lia-reference":{"oneOf":[{"type":"string","maxLength":255,"description":"Reference to this Controller's Legitimate Interests Assessment. Expected on `sole` and `lead` entries when `legal-basis` is `uk-legitimate-interests`. Each joint controller should supply their own.\n","example":"LIA-2024-003","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].lia-reference.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"Reference to this Controller's Legitimate Interests Assessment. Expected on `sole` and `lead` entries when `legal-basis` is `uk-legitimate-interests`. Each joint controller should supply their own.\n","example":"LIA-2024-003","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].lia-reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].lia-reference","typeLabel":"string | null"},"statutory-reference":{"oneOf":[{"type":"string","maxLength":500,"description":"The statutory instrument, regulation, or licence condition authorising this Controller's access. Expected on `sole` and `lead` entries when `legal-basis` is `uk-public-task` or `uk-legal-obligation`.\n","example":"Energy Act 2023, s.147","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].statutory-reference.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"The statutory instrument, regulation, or licence condition authorising this Controller's access. Expected on `sole` and `lead` entries when `legal-basis` is `uk-public-task` or `uk-legal-obligation`.\n","example":"Energy Act 2023, s.147","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].statutory-reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].statutory-reference","typeLabel":"string | null"},"storage-conditions":{"oneOf":[{"type":"object","description":"Where and for how long this Controller stores the data. Required on `sole` and `lead` entries. Optional on `joint` entries where storage arrangements differ. Omitted on `member` entries.\n","required":["location","retention-period"],"properties":{"location":{"type":"string","description":"ISO 3166-1 alpha-2 country code where data is stored. Expected to be `GB` for UK-only deployments.","example":"GB","isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].storage-conditions.oneOf.0.location","typeLabel":"string"},"retention-period":{"type":"string","description":"ISO 8601 duration for data retention after expiry or revocation.","example":"P2Y","isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].storage-conditions.oneOf.0.retention-period","typeLabel":"string"}},"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].storage-conditions.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].storage-conditions.oneOf.1","typeLabel":"null"}],"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX].storage-conditions","typeLabel":"object | null"}},"required":["name","role","contact-url"],"uniqueKey":"record-metadata.controller-arrangement.controllers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"record-metadata.controller-arrangement.controllers","typeLabel":"object[]"},"art26-reference":{"oneOf":[{"type":"string","maxLength":500,"description":"Reference to the Art. 26 inter-controller arrangement (e.g. a contract reference or document URL). Required when `arrangement-type` is `joint`; must be null for `sole` and `group`.\n","example":"JCA-2024-BrightGrid-001","uniqueKey":"record-metadata.controller-arrangement.art26-reference.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Reference to the Art. 26 inter-controller arrangement (e.g. a contract reference or document URL). Required when `arrangement-type` is `joint`; must be null for `sole` and `group`.\n","example":"JCA-2024-BrightGrid-001","uniqueKey":"record-metadata.controller-arrangement.art26-reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"record-metadata.controller-arrangement.art26-reference","typeLabel":"string | null"}},"required":["arrangement-type","controllers"],"isRequired":true,"uniqueKey":"record-metadata.controller-arrangement","typeLabel":"object"},"identity-record-ref":{"oneOf":[{"type":"string","pattern":"^ir_[0-9a-f]{24}$","description":"Reference to the Identity Record holding the person-property relationship for this access registration. The `ir` key is issued when the Identity Record is created via `POST /identity-records`.\n","example":"ir_a3c5e7f9b1d3a3c5e7f9b1d3","uniqueKey":"record-metadata.identity-record-ref.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^ir_[0-9a-f]{24}$","description":"Reference to the Identity Record holding the person-property relationship for this access registration. The `ir` key is issued when the Identity Record is created via `POST /identity-records`.\n","example":"ir_a3c5e7f9b1d3a3c5e7f9b1d3","uniqueKey":"record-metadata.identity-record-ref.oneOf.1","typeLabel":"null"}],"uniqueKey":"record-metadata.identity-record-ref","typeLabel":"string | null"}},"required":["schema-version","controller-arrangement"],"isRequired":true,"uniqueKey":"record-metadata","typeLabel":"object"},"notice":{"oneOf":[{"type":"object","description":"Populated for consent-based records; null for all other legal bases.\n","required":[],"properties":{"shared-notice":{"oneOf":[{"type":"object","description":"A single notice covering all controllers. Populated for `sole`, `group`, and most `joint` arrangements. Null when `notices` is used instead.\n","required":["terms-url","notice-version"],"properties":{"terms-url":{"type":"string","format":"uri","description":"URL of the privacy notice the customer agreed to. Must remain publicly accessible for the duration of any audit obligation.\n","example":"https://bright-energy.com/privacy-v3.html","isRequired":true,"uniqueKey":"notice.oneOf.0.shared-notice.oneOf.0.terms-url","typeLabel":"string\u003curi>"},"notice-version":{"type":"string","maxLength":50,"description":"Version identifier of the specific notice agreed to, independent of URL.\n","example":"v3.2","isRequired":true,"uniqueKey":"notice.oneOf.0.shared-notice.oneOf.0.notice-version","typeLabel":"string"},"notice-language":{"type":"string","description":"ISO 639-1 language code of the notice presented to the customer.","example":"en","uniqueKey":"notice.oneOf.0.shared-notice.oneOf.0.notice-language","typeLabel":"string"}},"uniqueKey":"notice.oneOf.0.shared-notice.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"notice.oneOf.0.shared-notice.oneOf.1","typeLabel":"null"}],"uniqueKey":"notice.oneOf.0.shared-notice","typeLabel":"object | null"},"notices":{"oneOf":[{"type":"array","minItems":2,"description":"Per-controller notices. Used only for `joint` arrangements where controllers have separately discharged Art. 13 obligations. Null when `shared-notice` is used instead.\n","items":{"type":"object","description":"A per-controller notice entry. Used within `NoticeFields.notices` when joint controllers have each discharged their Art. 13 obligations with separate privacy notices.\n","properties":{"controller-name":{"type":"string","maxLength":255,"description":"The `name` of the controller entry in `controller-arrangement.controllers` this notice belongs to. Used to associate the notice with the correct controller for display in the Customer Portal.\n","example":"Grid Analytics Ltd","isRequired":true,"uniqueKey":"notice.oneOf.0.notices.oneOf.0.items.[INDEX].controller-name","typeLabel":"string"},"terms-url":{"type":"string","format":"uri","example":"https://gridanalytics.com/privacy-v2.html","isRequired":true,"uniqueKey":"notice.oneOf.0.notices.oneOf.0.items.[INDEX].terms-url","typeLabel":"string\u003curi>"},"notice-version":{"type":"string","maxLength":50,"example":"v2.0","isRequired":true,"uniqueKey":"notice.oneOf.0.notices.oneOf.0.items.[INDEX].notice-version","typeLabel":"string"},"notice-language":{"type":"string","example":"en","uniqueKey":"notice.oneOf.0.notices.oneOf.0.items.[INDEX].notice-language","typeLabel":"string"}},"required":["controller-name","terms-url","notice-version"],"uniqueKey":"notice.oneOf.0.notices.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"notice.oneOf.0.notices.oneOf.0","typeLabel":"object[]"},{"type":"null","minItems":2,"description":"Per-controller notices. Used only for `joint` arrangements where controllers have separately discharged Art. 13 obligations. Null when `shared-notice` is used instead.\n","items":{"type":"object","description":"A per-controller notice entry. Used within `NoticeFields.notices` when joint controllers have each discharged their Art. 13 obligations with separate privacy notices.\n","properties":{"controller-name":{"type":"string","maxLength":255,"description":"The `name` of the controller entry in `controller-arrangement.controllers` this notice belongs to. Used to associate the notice with the correct controller for display in the Customer Portal.\n","example":"Grid Analytics Ltd"},"terms-url":{"type":"string","format":"uri","example":"https://gridanalytics.com/privacy-v2.html"},"notice-version":{"type":"string","maxLength":50,"example":"v2.0"},"notice-language":{"type":"string","example":"en"}},"required":["controller-name","terms-url","notice-version"]},"uniqueKey":"notice.oneOf.0.notices.oneOf.1","typeLabel":"null"}],"uniqueKey":"notice.oneOf.0.notices","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"notice.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"notice.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"notice","typeLabel":"object | null"},"processing":{"type":"object","description":"**ISO 27560 Section 3 — Processing Fields**\n\nDefines the shared scope and legal basis of data access. These fields apply\nto the access registration as a whole regardless of how many controllers\nare involved.\n\nPer-controller compliance fields — `privacy-rights-url`, `lia-reference`,\n`statutory-reference`, and `storage-conditions` — are held on each\n`Controller` entry within `record-metadata.controller-arrangement`, where\neach controller bears individual accountability.\n\n`legal-basis` applies to all controllers in the arrangement. For `joint`\narrangements, all controllers must share the same legal basis — if purposes\nor bases differ, separate Access Records are required.\n","properties":{"legal-basis":{"type":"string","description":"The legal basis under which the Controller accesses customer data.\n\n**Consent bases** — `notice` and `access-event.consent` must be populated.\n\n| Value | Plain name | Article |\n|---|---|---|\n| `uk-consent` | UK Consent | UK GDPR Art. 6(1)(a) |\n| `uk-explicit-consent` | UK Explicit Consent | UK GDPR Art. 9(2)(a) |\n\n**Non-consent bases** — `notice` and `access-event.consent` must be null.\n\n| Value | Plain name | Article | Supporting field (on lead controller) |\n|---|---|---|---|\n| `uk-legitimate-interests` | UK Legitimate Interests | UK GDPR Art. 6(1)(f) | `lia-reference` |\n| `uk-public-task` | UK Public Task | UK GDPR Art. 6(1)(e) | `statutory-reference` |\n| `uk-legal-obligation` | UK Legal Obligation | UK GDPR Art. 6(1)(c) | `statutory-reference` |\n| `uk-contract` | UK Contract | UK GDPR Art. 6(1)(b) | — |\n","enum":["uk-consent","uk-explicit-consent","uk-legitimate-interests","uk-public-task","uk-legal-obligation","uk-contract"],"example":"uk-consent","isRequired":true,"uniqueKey":"processing.legal-basis","typeLabel":"enum\u003cstring>"},"purpose":{"type":"string","maxLength":500,"description":"Human-readable description of why the Controller(s) are accessing this data. Required by GDPR Art. 13(1)(c). Shared across all controllers in the arrangement.\n","example":"Energy efficiency analysis and tariff recommendations","isRequired":true,"uniqueKey":"processing.purpose","typeLabel":"string"},"data-types":{"type":"array","minItems":1,"description":"One or more energy data categories covered by this access record.","items":{"type":"string","enum":["HH-CONSUMPTION","HH-EXPORT","MTH-CONSUMPTION","MTH-EXPORT","ANNUAL-CONSUMPTION","ANNUAL-EXPORT","TARIFF-IMPORT","TARIFF-EXPORT"],"uniqueKey":"processing.data-types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"processing.data-types","typeLabel":"enum\u003cstring>[]"},"data-source":{"type":"string","maxLength":255,"description":"Name of the organisation(s) from which meter data is sourced.","example":"National Grid ESO / MPAS","uniqueKey":"processing.data-source","typeLabel":"string"},"recipients":{"type":"array","description":"Third parties to whom data may be disclosed by any controller in the arrangement. Omit if none.\n","items":{"type":"object","description":"A third party to whom customer data may be disclosed.","properties":{"name":{"type":"string","maxLength":255,"example":"Analytics Co Ltd","isRequired":true,"uniqueKey":"processing.recipients.items.[INDEX].name","typeLabel":"string"},"role":{"type":"string","maxLength":100,"description":"Role of this recipient (e.g. \"Sub-processor\", \"Joint Controller\", \"Third Party Recipient\").\n","example":"Sub-processor","isRequired":true,"uniqueKey":"processing.recipients.items.[INDEX].role","typeLabel":"string"},"privacy-url":{"type":"string","format":"uri","example":"https://analyticsco.com/privacy","uniqueKey":"processing.recipients.items.[INDEX].privacy-url","typeLabel":"string\u003curi>"}},"required":["name","role"],"uniqueKey":"processing.recipients.items.[INDEX]","typeLabel":"object"},"uniqueKey":"processing.recipients","typeLabel":"object[]"}},"required":["legal-basis","purpose","data-types"],"isRequired":true,"uniqueKey":"processing","typeLabel":"object"},"access-event":{"type":"object","description":"**ISO 27560 Section 4 — Access Event Fields**\n\nRecords when access was registered, its lifecycle state and duration, and\n(for consent records) the specific details of how consent was expressed.\n\n`registered-at` serves as the canonical event timestamp for all record types —\nfor consent records it is the date the customer gave consent; for non-consent\nrecords it is the date the Controller registered their access.\n\n`revoked-at` is set by the register on revocation and must not be supplied\nin request bodies.\n\n\n`consent` is required when `legal-basis` is `uk-consent` or `uk-explicit-consent`. It must be omitted or null for all other legal bases (`uk-public-task`, `uk-legitimate-interests`, `uk-legal-obligation`, `uk-contract`).","properties":{"state":{"type":"string","description":"Lifecycle state of the access record.\n\n- `ACTIVE` — access is registered and in force.\n- `EXPIRED` — the record's `expiry` has passed.\n- `REVOKED` — the Controller has removed their registration, or the customer\n has withdrawn consent. Retained for audit with `access-event.revoked-at` set.\n- `DISCOVERED` — a sparse record created by the DCC from historic meter\n transaction logs. The organisation has not yet registered as a Data User.\n Visible to customers for transparency but cannot authorise data release.\n Transitions to superseded when the organisation registers a full record.\n","enum":["ACTIVE","EXPIRED","REVOKED","DISCOVERED"],"isRequired":true,"uniqueKey":"access-event.state","typeLabel":"enum\u003cstring>"},"registered-at":{"type":"string","format":"date-time","description":"For consent records: date and time the customer gave consent. For non-consent records: date and time the Controller registered access. May predate `record-metadata.created-at` for historic registrations.\n","example":"2023-11-07T05:31:56Z","isRequired":true,"uniqueKey":"access-event.registered-at","typeLabel":"string\u003cdate-time>"},"expiry":{"oneOf":[{"type":"string","format":"date-time","description":"When this access registration expires. Null indicates no defined end date. Data Providers must deny access once this timestamp has passed.\n","example":"2027-11-10T17:07:01.580Z","isRequired":true,"uniqueKey":"access-event.expiry.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When this access registration expires. Null indicates no defined end date. Data Providers must deny access once this timestamp has passed.\n","example":"2027-11-10T17:07:01.580Z","isRequired":true,"uniqueKey":"access-event.expiry.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"access-event.expiry","typeLabel":"string\u003cdate-time> | null"},"controller-reference":{"type":"string","maxLength":255,"description":"Controller's internal reference for this registration (e.g. CRM ID, contract number, or LIA document reference).\n","example":"REF-00123","uniqueKey":"access-event.controller-reference","typeLabel":"string"},"consent":{"oneOf":[{"type":"object","description":"Populated for consent-based records; null for all other legal bases.\n","required":["consent-type"],"properties":{"consent-type":{"type":"string","description":"Legal type of consent expressed. Only applicable when `legal-basis` is a\nconsent value.\n\n- `expressed-consent` — actively and unambiguously expressed (e.g. checkbox).\n Sufficient for standard personal data under Art. 6(1)(a).\n- `explicit-consent` — explicit and specific. Required for special category\n data under Art. 9(2)(a), or where the Controller's process mandates it.\n","enum":["expressed-consent","explicit-consent"],"isRequired":true,"uniqueKey":"access-event.consent.oneOf.0.consent-type","typeLabel":"enum\u003cstring>"},"method":{"type":"string","maxLength":100,"description":"Mechanism through which consent was expressed — how the principal indicated their agreement (e.g. \"Explicit web checkbox\", \"Signed paper form\", \"Voice recording\", \"In-app toggle\").\n","example":"Explicit web checkbox","uniqueKey":"access-event.consent.oneOf.0.method","typeLabel":"string"}},"uniqueKey":"access-event.consent.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"access-event.consent.oneOf.1","typeLabel":"null"}],"uniqueKey":"access-event.consent","typeLabel":"object | null"}},"required":["state","registered-at","expiry"],"isRequired":true,"uniqueKey":"access-event","typeLabel":"object"},"reidentification-token":{"oneOf":[{"type":"string","description":"Cross-DUID only. A confirmed token-ref obtained via `POST /identity-records/reidentify`. When supplied, `identity-record-ref` in `record-metadata` must be omitted — the register resolves the `ir` internally. The token is single-use, scoped to the initiating Data User, and expires one hour after issuance.","uniqueKey":"reidentification-token.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cross-DUID only. A confirmed token-ref obtained via `POST /identity-records/reidentify`. When supplied, `identity-record-ref` in `record-metadata` must be omitted — the register resolves the `ir` internally. The token is single-use, scoped to the initiating Data User, and expires one hour after issuance.","uniqueKey":"reidentification-token.oneOf.1","typeLabel":"null"}],"uniqueKey":"reidentification-token","typeLabel":"string | null"}},"required":["record-metadata","notice","processing","access-event"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"record-metadata":{"schema-version":"1.0","controller-arrangement":{"controllers":[{"name":"Bright Energy Ltd","contact-url":"https://bright-energy.com/contact","privacy-rights-url":"https://bright-energy.com/your-rights","lia-reference":"LIA-2024-003","statutory-reference":"Energy Act 2023, s.147","storage-conditions":{"location":"GB","retention-period":"P2Y"}}],"art26-reference":"JCA-2024-BrightGrid-001"},"identity-record-ref":"ir_a3c5e7f9b1d3a3c5e7f9b1d3"},"notice":{"shared-notice":{"terms-url":"https://bright-energy.com/privacy-v3.html","notice-version":"v3.2","notice-language":"en"},"notices":[{"controller-name":"Grid Analytics Ltd","terms-url":"https://gridanalytics.com/privacy-v2.html","notice-version":"v2.0","notice-language":"en"}]},"processing":{"legal-basis":"uk-consent","purpose":"Energy efficiency analysis and tariff recommendations","data-types":[],"data-source":"National Grid ESO / MPAS","recipients":[{"name":"Analytics Co Ltd","role":"Sub-processor","privacy-url":"https://analyticsco.com/privacy"}]},"access-event":{"registered-at":"2023-11-07T05:31:56Z","expiry":"2027-11-10T17:07:01.580Z","controller-reference":"REF-00123","consent":{"method":"Explicit web checkbox"}},"reidentification-token":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9c08afc1-d8e0-4917-8bf1-f36f731894a5":{"description":"Access record replaced successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"resource":{"type":"string","example":"/v1/access-records/ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.resource","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-11T12:00:00Z","isRequired":true,"uniqueKey":"response.timestamp","typeLabel":"string\u003cdate-time>"},"transaction-id":{"type":"string","description":"Unique identifier for this request/response pair. Quote in support enquiries.","example":"tid_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.transaction-id","typeLabel":"string"}},"required":["resource","timestamp","transaction-id"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"},"access-token":{"type":"object","description":"The access token issued on successful registration. Pass to Data Providers to enable access verification.\n","properties":{"key":{"type":"string","pattern":"^ak_[0-9a-f]{24}$","description":"Unique opaque identifier for an access record, issued by the register on creation. Treat as a secret — possession enables access verification.\n","example":"ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"access-token.key","typeLabel":"string"},"expiry":{"oneOf":[{"type":"string","format":"date-time","description":"Expiry date-time of the access record. Null for records with no expiry (e.g. uk-public-task registrations). Store this value — the consent.expiring webhook is fired relative to it.","uniqueKey":"access-token.expiry.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Expiry date-time of the access record. Null for records with no expiry (e.g. uk-public-task registrations). Store this value — the consent.expiring webhook is fired relative to it.","uniqueKey":"access-token.expiry.oneOf.1","typeLabel":"null"}],"uniqueKey":"access-token.expiry","typeLabel":"string\u003cdate-time> | null"}},"required":["key"],"isRequired":true,"uniqueKey":"access-token","typeLabel":"object"}},"required":["response","access-token"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"response":{"resource":"/v1/access-records/ak_691df0c788ca043403b7fa90","timestamp":"2026-03-11T12:00:00Z","transaction-id":"tid_691df0c788ca043403b7fa90"},"access-token":{"key":"ak_691df0c788ca043403b7fa90","expiry":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a7dfad3b-a793-4826-aa63-c144e68e8d3c":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"resource":{"type":"string","example":"/v1/access-records/ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.resource","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-11T12:00:00Z","isRequired":true,"uniqueKey":"response.timestamp","typeLabel":"string\u003cdate-time>"},"transaction-id":{"type":"string","description":"Unique identifier for this request/response pair. Quote in support enquiries.","example":"tid_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.transaction-id","typeLabel":"string"}},"required":["resource","timestamp","transaction-id"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"},"errors":{"type":"array","minItems":1,"items":{"type":"object","properties":{"error-code":{"type":"string","example":"VAL001","isRequired":true,"uniqueKey":"errors.items.[INDEX].error-code","typeLabel":"string"},"message":{"type":"string","example":"Field 'mpxn' does not match the required pattern.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"required":["error-code","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"required":["response","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"response":{"resource":"/v1/access-records/ak_691df0c788ca043403b7fa90","timestamp":"2026-03-11T12:00:00Z","transaction-id":"tid_691df0c788ca043403b7fa90"},"errors":[{"error-code":"VAL001","message":"Field 'mpxn' does not match the required pattern."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"18f15db4-f744-4aae-9b90-c4ed061c8c87":{"description":"Missing or invalid bearer token.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"resource":{"type":"string","example":"/v1/access-records/ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.resource","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-11T12:00:00Z","isRequired":true,"uniqueKey":"response.timestamp","typeLabel":"string\u003cdate-time>"},"transaction-id":{"type":"string","description":"Unique identifier for this request/response pair. Quote in support enquiries.","example":"tid_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.transaction-id","typeLabel":"string"}},"required":["resource","timestamp","transaction-id"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"},"errors":{"type":"array","minItems":1,"items":{"type":"object","properties":{"error-code":{"type":"string","example":"VAL001","isRequired":true,"uniqueKey":"errors.items.[INDEX].error-code","typeLabel":"string"},"message":{"type":"string","example":"Field 'mpxn' does not match the required pattern.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"required":["error-code","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"required":["response","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"response":{"resource":"/v1/access-records/ak_691df0c788ca043403b7fa90","timestamp":"2026-03-11T12:00:00Z","transaction-id":"tid_691df0c788ca043403b7fa90"},"errors":[{"error-code":"VAL001","message":"Field 'mpxn' does not match the required pattern."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"334fe817-4325-47f9-a39d-c47f060f46aa":{"description":"Authenticated caller lacks permission for this action.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"resource":{"type":"string","example":"/v1/access-records/ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.resource","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-11T12:00:00Z","isRequired":true,"uniqueKey":"response.timestamp","typeLabel":"string\u003cdate-time>"},"transaction-id":{"type":"string","description":"Unique identifier for this request/response pair. Quote in support enquiries.","example":"tid_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.transaction-id","typeLabel":"string"}},"required":["resource","timestamp","transaction-id"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"},"errors":{"type":"array","minItems":1,"items":{"type":"object","properties":{"error-code":{"type":"string","example":"VAL001","isRequired":true,"uniqueKey":"errors.items.[INDEX].error-code","typeLabel":"string"},"message":{"type":"string","example":"Field 'mpxn' does not match the required pattern.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"required":["error-code","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"required":["response","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"response":{"resource":"/v1/access-records/ak_691df0c788ca043403b7fa90","timestamp":"2026-03-11T12:00:00Z","transaction-id":"tid_691df0c788ca043403b7fa90"},"errors":[{"error-code":"VAL001","message":"Field 'mpxn' does not match the required pattern."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"35fca45e-3e41-49c9-b1d2-a9b6e5ec6db4":{"description":"The requested resource does not exist.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"resource":{"type":"string","example":"/v1/access-records/ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.resource","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-11T12:00:00Z","isRequired":true,"uniqueKey":"response.timestamp","typeLabel":"string\u003cdate-time>"},"transaction-id":{"type":"string","description":"Unique identifier for this request/response pair. Quote in support enquiries.","example":"tid_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.transaction-id","typeLabel":"string"}},"required":["resource","timestamp","transaction-id"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"},"errors":{"type":"array","minItems":1,"items":{"type":"object","properties":{"error-code":{"type":"string","example":"VAL001","isRequired":true,"uniqueKey":"errors.items.[INDEX].error-code","typeLabel":"string"},"message":{"type":"string","example":"Field 'mpxn' does not match the required pattern.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"required":["error-code","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"required":["response","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"response":{"resource":"/v1/access-records/ak_691df0c788ca043403b7fa90","timestamp":"2026-03-11T12:00:00Z","transaction-id":"tid_691df0c788ca043403b7fa90"},"errors":[{"error-code":"VAL001","message":"Field 'mpxn' does not match the required pattern."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"c5ad8ba7-b57a-4eec-8b63-41dc92659e09":{"description":"Record is not in `ACTIVE` state and cannot be replaced. `REVOKED` and `EXPIRED` records are immutable.\n","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"resource":{"type":"string","example":"/v1/access-records/ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.resource","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-11T12:00:00Z","isRequired":true,"uniqueKey":"response.timestamp","typeLabel":"string\u003cdate-time>"},"transaction-id":{"type":"string","description":"Unique identifier for this request/response pair. Quote in support enquiries.","example":"tid_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.transaction-id","typeLabel":"string"}},"required":["resource","timestamp","transaction-id"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"},"errors":{"type":"array","minItems":1,"items":{"type":"object","properties":{"error-code":{"type":"string","example":"VAL001","isRequired":true,"uniqueKey":"errors.items.[INDEX].error-code","typeLabel":"string"},"message":{"type":"string","example":"Field 'mpxn' does not match the required pattern.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"required":["error-code","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"required":["response","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"response":{"resource":"/v1/access-records/ak_691df0c788ca043403b7fa90","timestamp":"2026-03-11T12:00:00Z","transaction-id":"tid_691df0c788ca043403b7fa90"},"errors":[{"error-code":"VAL001","message":"Field 'mpxn' does not match the required pattern."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"1f496737-9e11-431d-b2fb-ee7b6241396f":{"description":"An unexpected server-side error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"resource":{"type":"string","example":"/v1/access-records/ak_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.resource","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-11T12:00:00Z","isRequired":true,"uniqueKey":"response.timestamp","typeLabel":"string\u003cdate-time>"},"transaction-id":{"type":"string","description":"Unique identifier for this request/response pair. Quote in support enquiries.","example":"tid_691df0c788ca043403b7fa90","isRequired":true,"uniqueKey":"response.transaction-id","typeLabel":"string"}},"required":["resource","timestamp","transaction-id"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"},"errors":{"type":"array","minItems":1,"items":{"type":"object","properties":{"error-code":{"type":"string","example":"VAL001","isRequired":true,"uniqueKey":"errors.items.[INDEX].error-code","typeLabel":"string"},"message":{"type":"string","example":"Field 'mpxn' does not match the required pattern.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"required":["error-code","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"required":["response","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"response":{"resource":"/v1/access-records/ak_691df0c788ca043403b7fa90","timestamp":"2026-03-11T12:00:00Z","transaction-id":"tid_691df0c788ca043403b7fa90"},"errors":[{"error-code":"VAL001","message":"Field 'mpxn' does not match the required pattern."}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"cbbd7edf-9716-4bd1-bb31-56bde34291f1":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT from `GET /auth/token`. Pass as `Authorization: Bearer \u003ctoken>`. Expires after 7200s.","scopes":[]}}},"servers":{"019bb311-53bf-46db-af2b-1270792ad179":{"url":"https://api.central.consent/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT from `GET /auth/token`. Pass as `Authorization: Bearer \u003ctoken>`. Expires after 7200s.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"JWT from `GET /auth/token`. Pass as `Authorization: Bearer \u003ctoken>`. Expires after 7200s.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"data-access-register/api/openapi-dar.yaml"},"subdomain":"authenergy","siteName":"Auth Energy","title":"Replace an Access Record - Auth Energy","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-25T21:14:06.615Z","originalFileLocation":"api-reference/data-users/replace-an-access-record.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Replaces the full payload of an existing access record. The record identified by ak must have been registered by the authenticated Data User. This is a full replacement — the entire AccessRecord body must be supplied. The ak, duid, created-at, and record-metadata.record-identifier are preserved from the original; all other fields are replaced with the submitted payload. Use this to: - Refresh a consent record when the customer renews (e.g. update expiry or notice-version). To update identity verification evidence, update the linked Identity Record via POST /identity-records and update record-metadata.identity-record-ref to the new ir key. - Correct an error in a submitted record - Update processing.purpose or data-types after a scope change State constraint: Only ACTIVE records may be replaced. Attempting to replace a REVOKED or EXPIRED record returns 409.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Auth Energy\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Replace an Access Record - Auth Energy\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replaces the full payload of an existing access record. The record identified by ak must have been registered by the authenticated Data User. This is a full replacement — the entire AccessRecord body must be supplied. The ak, duid, created-at, and record-metadata.record-identifier are preserved from the original; all other fields are replaced with the submitted payload. Use this to: - Refresh a consent record when the customer renews (e.g. update expiry or notice-version). To update identity verification evidence, update the linked Identity Record via POST /identity-records and update record-metadata.identity-record-ref to the new ir key. - Correct an error in a submitted record - Update processing.purpose or data-types after a scope change State constraint: Only ACTIVE records may be replaced. Attempting to replace a REVOKED or EXPIRED record returns 409.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Auth Energy\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://authenergy.mintlify.site/_mintlify/api/og/v2?division=Data+Users\u0026amp;title=Replace+an+Access+Record\u0026amp;description=Replaces+the+full+payload+of+an+existing+access+record.+The+record+identified%0Aby+%60ak%60+must+have+been+registered+by+the+authenticated+Data+User.%0A%0AThis+is+a+full+\u0026amp;theme=d739051e844407f3ea00c2fd\u0026amp;signature=90436c00dcd912c25f46c3e270cd3c757f1337e27fea110ed93cf0fbddaf252e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Replace an Access Record - Auth Energy\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replaces the full payload of an existing access record. The record identified by ak must have been registered by the authenticated Data User. This is a full replacement — the entire AccessRecord body must be supplied. The ak, duid, created-at, and record-metadata.record-identifier are preserved from the original; all other fields are replaced with the submitted payload. Use this to: - Refresh a consent record when the customer renews (e.g. update expiry or notice-version). To update identity verification evidence, update the linked Identity Record via POST /identity-records and update record-metadata.identity-record-ref to the new ir key. - Correct an error in a submitted record - Update processing.purpose or data-types after a scope change State constraint: Only ACTIVE records may be replaced. Attempting to replace a REVOKED or EXPIRED record returns 409.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://authenergy.mintlify.site/_mintlify/api/og/v2?division=Data+Users\u0026amp;title=Replace+an+Access+Record\u0026amp;description=Replaces+the+full+payload+of+an+existing+access+record.+The+record+identified%0Aby+%60ak%60+must+have+been+registered+by+the+authenticated+Data+User.%0A%0AThis+is+a+full+\u0026amp;theme=d739051e844407f3ea00c2fd\u0026amp;signature=90436c00dcd912c25f46c3e270cd3c757f1337e27fea110ed93cf0fbddaf252e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/authenergy/IITgOp8bvJ_hv2gC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Auth Energy\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D3373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/data-users/replace-an-access-record.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.auth.energy/#organization\",\"name\":\"Auth Energy\",\"url\":\"https://docs.auth.energy\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/authenergy/SU_OvKbS5HOjt3t_/images/logo-black.png?fit=max\u0026auto=format\u0026n=SU_OvKbS5HOjt3t_\u0026q=85\u0026s=9d60280d9cee1921b21736e5863158bb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.auth.energy#website\",\"name\":\"Auth Energy\",\"url\":\"https://docs.auth.energy\",\"publisher\":{\"@id\":\"https://docs.auth.energy/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record#webpage\",\"url\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record\",\"name\":\"Replace an Access Record\",\"description\":\"Replaces the full payload of an existing access record. The record identified by ak must have been registered by the authenticated Data User. This is a full replacement — the entire AccessRecord body must be supplied. The ak, duid, created-at, and record-metadata.record-identifier are preserved from the original; all other fields are replaced with the submitted payload. Use this to: - Refresh a consent record when the customer renews (e.g. update expiry or notice-version). To update identity verification evidence, update the linked Identity Record via POST /identity-records and update record-metadata.identity-record-ref to the new ir key. - Correct an error in a submitted record - Update processing.purpose or data-types after a scope change State constraint: Only ACTIVE records may be replaced. Attempting to replace a REVOKED or EXPIRED record returns 409.\",\"dateModified\":\"2026-03-25T21:14:06.615Z\",\"isPartOf\":{\"@id\":\"https://docs.auth.energy#website\"},\"breadcrumb\":{\"@id\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Users\",\"item\":\"https://docs.auth.energy/api-reference/data-users/create-an-access-record\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Replace an Access Record\",\"item\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record#apireference\",\"headline\":\"Replace an Access Record\",\"name\":\"Replace an Access Record\",\"description\":\"Replaces the full payload of an existing access record. The record identified by ak must have been registered by the authenticated Data User. This is a full replacement — the entire AccessRecord body must be supplied. The ak, duid, created-at, and record-metadata.record-identifier are preserved from the original; all other fields are replaced with the submitted payload. Use this to: - Refresh a consent record when the customer renews (e.g. update expiry or notice-version). To update identity verification evidence, update the linked Identity Record via POST /identity-records and update record-metadata.identity-record-ref to the new ir key. - Correct an error in a submitted record - Update processing.purpose or data-types after a scope change State constraint: Only ACTIVE records may be replaced. Attempting to replace a REVOKED or EXPIRED record returns 409.\",\"url\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record\",\"mainEntityOfPage\":{\"@id\":\"https://docs.auth.energy/api-reference/data-users/replace-an-access-record#webpage\"},\"dateModified\":\"2026-03-25T21:14:06.615Z\",\"publisher\":{\"@id\":\"https://docs.auth.energy/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.auth.energy#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Auth Energy\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Auth Energy\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/data-users/replace-an-access-record.md","siteName":"Auth Energy","nav":{"global":null,"products":[{"product":"Home","icon":"house","description":"Overview of Auth Energy","pages":[{"title":"Home","href":"/general"}]},{"product":"The Second Unbundling","icon":"lightbulb","description":"PRIVATE PREVIEW","hidden":true,"pages":[{"title":"The Second Unbundling","href":"/second-unbundling"}]},{"product":"GB Smart Metering","icon":"bolt","description":"PRIVATE PREVIEW","hidden":true,"pages":[{"title":"GB Smart Metering","href":"/gbsmart3"}]},{"product":"Data Access Register","icon":"cabinet-filing","description":"Open alternative to CCS","groups":[{"group":"Documents","pages":[{"title":"Data Access Register","sidebarTitle":"Overview","icon":"database","href":"/data-access-register"},{"title":"Identity Records","sidebarTitle":"Identity Records","icon":"fingerprint","href":"/data-access-register/identity-guide"},{"title":"Smart Energy Data Governance Framework","sidebarTitle":"Onward Data Sharing","icon":"shield","href":"/data-access-register/data-zones"},{"title":"Central Customer Portal","sidebarTitle":"Customer Portal","icon":"user","href":"/data-access-register/customer-portal"},{"title":"Authorised Portal Operators","sidebarTitle":"Portal Operators","icon":"browser","href":"/data-access-register/portal-operators"},{"title":"Proof of Concept / Demo Overview","sidebarTitle":"PoC / Demo","icon":"play","tag":"experimental","href":"/data-access-register/demo"},{"title":"Github Data Access Register Repository","sidebarTitle":"Github","icon":"github","url":"https://github.com/authenergy/dar","href":"/data-access-register/github"},{"title":"Change Log","sidebarTitle":"Change Log","icon":"arrow-down-arrow-up","href":"/data-access-register/change-log"}]},{"group":"Identity Records","pages":[{"title":"Look Up Identity Records","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /identity-records","href":"/api-reference/identity-records/look-up-identity-records"},{"title":"Create an Identity Record","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml post /identity-records","href":"/api-reference/identity-records/create-an-identity-record"},{"title":"Retrieve an Identity Record","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /identity-records/{ir}","href":"/api-reference/identity-records/retrieve-an-identity-record"},{"title":"Anonymise an Identity Record","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml delete /identity-records/{ir}","href":"/api-reference/identity-records/anonymise-an-identity-record"},{"title":"Remove a Passkey Credential","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml delete /identity-records/{ir}/credentials/{credentialId}","href":"/api-reference/identity-records/remove-a-passkey-credential"}]},{"group":"Re-identification","pages":[{"title":"Initiate Re-identification","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml post /identity-records/{ir}/re-identify","href":"/api-reference/re-identification/initiate-re-identification"},{"title":"Confirm Re-identification Status","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /identity-records/{ir}/re-identify/{tokenRef}","href":"/api-reference/re-identification/confirm-re-identification-status"},{"title":"Check Identity Record Existence by MPxN","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /identity-records/exists","href":"/api-reference/re-identification/check-identity-record-existence-by-mpxn"},{"title":"Initiate Cross-DUID Re-identification by MPxN","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml post /identity-records/reidentify","href":"/api-reference/re-identification/initiate-cross-duid-re-identification-by-mpxn"},{"title":"Poll Cross-DUID Re-identification Status","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /identity-records/reidentify/{tokenRef}","href":"/api-reference/re-identification/poll-cross-duid-re-identification-status"}]},{"group":"Authentication","pages":[{"title":"Obtain Bearer Token","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /auth/token","href":"/api-reference/authentication/obtain-bearer-token"}]},{"group":"Data Users","pages":[{"title":"Create an Access Record","description":"Registers a new access record on behalf of a Controller. Returns `201` and\nan `access-token` containing the new access key (`ak`), plus a `Location`\nheader pointing to the created resource.\n\nAll records use the same `AccessRecord` schema. The `processing.legal-basis`\nvalue determines which additional fields are expected:\n\n- **Consent bases** — populate `notice` and `access-event.consent`.\n- **Legitimate interests** — populate `lia-reference` on the lead controller\n entry; set `notice` and `access-event.consent` to null.\n- **Public task / legal obligation** — populate `statutory-reference` on the\n lead controller entry; set `notice` and `access-event.consent` to null.\n- **Contract** — set `notice` and `access-event.consent` to null.\n\nHistoric records may be submitted — `access-event.registered-at` may predate\n`record-metadata.created-at`.\n\nIf the DCC has previously submitted a `DISCOVERED` record for the same MPxN\nand organisation, the register will link the two records on creation. The\nDISCOVERED record is retained for audit; the new full record becomes `ACTIVE`.\n\nTo update an existing record use `PUT /access-records/{ak}`.\n\n\n**Cross-DUID re-identification:** To create an Access Record linked to an Identity Record originally created by another Data User, include a `reidentification-token` field in the request body (alongside the standard `AccessRecord` fields, without `record-metadata.identity-record-ref`). Obtain the token via `POST /identity-records/reidentify`. The register validates the token and resolves the `ir` internally.","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml post /access-records","href":"/api-reference/data-users/create-an-access-record"},{"title":"Replace an Access Record","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml put /access-records/{ak}","href":"/api-reference/data-users/replace-an-access-record"},{"title":"Revoke Access Record","description":"Revokes an access record. Transitions the record to `REVOKED` state with a\n`revoked-at` timestamp. Records are retained for audit — not deleted.\n\nFor consent records this represents customer withdrawal of consent.\nFor non-consent records this represents the Controller removing their\naccess registration (e.g. LIA no longer applicable, contract ended,\nstatutory authority lapsed).\n\nAfter revocation `GET /access-records/{ak}` returns the record in `REVOKED`\nstate. Data Providers must deny access for any non-`ACTIVE` record.\n","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml delete /access-records/{ak}","href":"/api-reference/data-users/revoke-access-record"},{"title":"List Access Records for a Meter Point","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /meter-points/{mpxn}/access-records","href":"/api-reference/data-users/list-access-records-for-a-meter-point"},{"title":"List Own Access Records","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /records","href":"/api-reference/data-users/list-own-access-records"}]},{"group":"Data Providers","pages":[{"title":"Verify Access Record","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /access-records/{ak}","href":"/api-reference/data-providers/verify-access-record"},{"title":"Look Up a Data User by DUID","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /data-users/{duid}","href":"/api-reference/data-providers/look-up-a-data-user-by-duid"}]},{"group":"DCC","pages":[{"title":"Submit a Discovered Access Record","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml post /discovered-access","href":"/api-reference/dcc/submit-a-discovered-access-record"},{"title":"Submit a Change of Tenancy Event","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml post /cot-events","href":"/api-reference/dcc/submit-a-change-of-tenancy-event"}]},{"group":"Webhooks","pages":[{"title":"List Webhook Subscriptions","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml get /webhooks","href":"/api-reference/webhooks/list-webhook-subscriptions"},{"title":"Register a Webhook Subscription","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml post /webhooks","href":"/api-reference/webhooks/register-a-webhook-subscription"},{"title":"Delete a Webhook Subscription","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml delete /webhooks/{wid}","href":"/api-reference/webhooks/delete-a-webhook-subscription"},{"title":"Update a Webhook Subscription","deprecated":null,"version":null,"openapi":"/data-access-register/api/openapi-dar.yaml patch /webhooks/{wid}","href":"/api-reference/webhooks/update-a-webhook-subscription"}]}]},{"product":"Consumer Consent Solution","icon":"shield-check","description":"Tracking opinions on CCS","pages":[{"title":"Consumer Consent Solution","href":"/ccs/organisation-tracker"}]},{"product":"Tariff Interoperability","icon":"sterling-sign","description":"Understanding Tariff Interop","hidden":true,"pages":[{"title":"Tariff Interoperability","href":"/tariff-interop"}]},{"product":"Flexibility Market Assets","icon":"diagram-project","description":"Flexibility Market Asset Registration","pages":[{"title":"Flexibility Market Assets","href":"/fmar"}]}]},"basePath":"","title":"Replace an Access Record - Auth Energy","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","SectionHeading-Cc2r-uqU.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js","Markdown-0RkHcMOI.js","AssistantPageLink-DeJZCj9t.js","dist-DVqS175j.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}