Platform jobs
The admin console (ADR 0261) shares only the database with the portal. Some of what the platform’s team does needs the portal’s own services: its mail, its object store, its Redis (sessions, sign-in lockouts) or a portal account. For those, the console writes a platform job into public.platform_jobs. The portal’s worker carries it out with its own services and writes the outcome back. The console never calls the portal’s API. Decision record: ADR 0262.
This page is the contract. The console builds against it; the portal keeps it stable and only extends it (a new kind, a new optional field).
The table
Section titled “The table”| Column | Type | Who writes it | Meaning |
|---|---|---|---|
id |
uuid |
database | The job. |
kind |
text |
console | What to do, one of the kinds below (^[a-z][a-z_]{1,62}$). |
payload |
jsonb (object) |
console | The kind’s input, as described below. Unknown fields are refused. |
blob |
bytea, ≤ 5 MB |
console | Bytes the kind needs (a picture). Emptied when the job finishes. |
requested_by |
text |
console | The operator’s email. The console’s staff are no portal accounts; this email goes into the audit trail. |
status |
queued, running, done, failed |
portal | queued on insert. |
result |
jsonb |
portal | The outcome of a done job. |
error |
text |
portal | A stable code for a failed job (below). Set exactly when status = 'failed'. |
error_detail |
text |
portal | A sentence explaining the code, for the operator. |
created_at, started_at, finished_at |
timestamptz |
database, portal | |
locked_until |
timestamptz |
portal | Internal to the worker. |
Rights. The console’s role (academy_admin) needs insert and select on the table. Migration 0321 grants both when the role exists; the console’s own deploy/database-role.sql grants it rights on all core tables anyway. The console never updates or deletes a job.
Asking. One insert, with kind, payload, requested_by and, where needed, blob:
insert into platform_jobs (kind, payload, requested_by)values ('sign_out', '{"userId": "…"}', 'support@example.com')returning id;Waiting for the outcome. The insert fires pg_notify('platform_jobs', <id>), which wakes the worker at once; without it the worker looks every 5 seconds. When a job finishes the portal sends pg_notify('platform_jobs_done', <id>). The console can listen platform_jobs_done or simply read the row again until status is done or failed. Most jobs finish within a second or two; material_from_link reads a remote page and can take up to about 20 seconds.
Ordering and retries. Jobs run one at a time per portal process, oldest first; several portal processes share the queue (for update skip locked). A job runs once. A job that was still running 10 minutes after it started (the portal stopped in the middle) becomes failed with interrupted, because some kinds must not happen twice (an email, an erasure). The console decides whether to ask again.
Keeping. Finished jobs are deleted 90 days after finished_at.
Audit. The portal records what a job did in the audit trail of the organisation it touched (audit_log, action operator.<action>) or in the platform’s (platform_audit_log, action platform.<action>). The entry has no actor id and details.operator = requested_by, details.job = the job’s id. The console does not need to write these entries itself (its own console log is its business).
Whom a job is about
Section titled “Whom a job is about”Kinds about a person take one of:
{"userId": "<uuid>"}: a membership (users.id), as the console’s people search shows it.{"accountId": "<uuid>"}: an account (accounts.id), for free learners without an organisation.
Both together, or neither, fail with validation_failed.
The kinds sign_out, reset_two_factor, unlock and erase_person also take an optional "ticket": <number>: the number of the platform’s support ticket the team works on (ADR 0305). The person’s notice names it.
The person is told. The platform’s team may be one person, so there is no second pair of eyes: these four kinds email the person what was done (mail support_action, with a button that opens a complaint ticket, which always reaches the platform’s team). For reset_two_factor and unlock the email goes first: if it can’t be sent, nothing is done and the job fails with notice_failed. sign_out (it protects) and erase_person (the address goes with it) never wait for the email; their result says told.
sign_out
Section titled “sign_out”Ends every session of the person: the membership’s, and every membership of its account.
- Payload: a person.
- Result:
{"signedOut": true, "told": boolean}. - Audit:
operator.signed_out_everywhere(membership) orplatform.signed_out_everywhere(account). - Errors:
not_found.
reset_two_factor
Section titled “reset_two_factor”For someone who lost their phone and their recovery codes: the account’s TOTP and recovery codes are removed, then every session ends.
- Payload: a person.
- Result:
{"reset": true, "told": true}. The person is emailed in the same transaction. - Audit:
operator.two_factor_reset(membership) andplatform.two_factor_reset(always). - Errors:
not_found,no_account(the person signs in only through their learning platform, LTI),notice_failed(the email couldn’t be sent: nothing was reset, ask again later).
access_link
Section titled “access_link”A one-time link back in, emailed to the person. The link is never returned to the console.
-
A membership that never signed in and has no password gets a new invitation (
invite). Every other membership gets a password reset (reset). -
An account gets a password reset if it has a password, otherwise a sign-in link (
magic). -
Payload: a person.
-
Result:
{"purpose": "invite" | "reset" | "magic", "emailed": true}. -
Audit:
operator.access_link_emailedorplatform.access_link_emailed. -
Errors:
not_found,erased,mail_failed(the mail server refused; ask again later).
unlock
Section titled “unlock”Lifts the sign-in lockout after too many attempts (password, email link, password reset).
- Payload: a person.
- Result:
{"unlocked": true, "told": true}. The person is emailed first. - Audit:
operator.sign_in_unlockedorplatform.sign_in_unlocked. - Errors:
not_found,notice_failed(the email couldn’t be sent: the lockout stays, ask again later).
erase_person
Section titled “erase_person”Takes someone out of an organisation, exactly as its administrators would (GDPR Art. 17, ADR 0023). The membership is erased and stays pseudonymised as the author of what the person made. The account goes when nothing else needs it. Memberships only: free learners delete their own account.
- Payload:
{"userId": "<uuid>", "ticket"?: <number>}. - Result:
{"erasure": {"userId", "erasedAt", "deleted": {…counts}}, "accountGone": boolean, "told": boolean}. - Audit:
operator.member_removedwithdetails.email, beside the erasure’s ownuser.erased. - Errors:
not_found,already_erased,last_admin(the organisation’s last global administrator; make someone else one first).
erase_organisation
Section titled “erase_organisation”Erases an organisation that left (ADR 0315): its switch to another provider, or the platform’s termination, ended its contract, its time to retrieve its data is over, and ORG_DELETE_AFTER_EXPORT_DAYS (7–30, default 30; ADR 0374) have passed since, after two notices to its global administrators. The portal keeps the schedule in organisation_erasures (read it: erase_at, first_notice_at, last_notice_at) and files a high-priority ticket in the platform’s queue seven days before the target date for preparation. The hourly sweep announces the target during retrieval and never moves it relative to a late sweep. Actual deletion remains an operator job, due no later than retrieval end + 30 days. A withdrawn/changed source is revalidated at execution. The job deletes at HeyGen, Synthesia and LiveAvatar with the organisation’s keys first, then its files, then the organisation’s rows; its former global administrators get a confirmation. Its marketplace invoices, commission invoices, payouts and ledger entries, with the orders and course payments they name and its seller details, are copied to the accounting archive in the same transaction (ADR 0324); they stay there, readable only for accounting, until seven years after their financial year.
The erasure goes into the erasure log (kind organisation, ADR 0330), so a restored backup can’t bring the organisation back for good. The console asks for this job under Operations → Organisations → Erasures, only for a due organisation, and refuses while the portal lacks migration 0378.
- Payload:
{"tenantId": "<uuid>", "ticket"?: <number>, "controllerInstruction"?: {"confirmed": true, "reference": "<verified instruction reference>"}}. An earlier instruction requires its own organisation-linked platform ticket and must not be combined with replay. The console accepts this via API/MCP only for Operations/Admin,accessPurpose=data_request, exact organisation-name confirmation, and verified authority/evidence in the ticket. It bypasses the standard schedule and notices, not the lab-node guard, audit or erasure log. The instruction is due without undue delay and within 30 days of receipt; operators track that deadline in the ticket. The portal itself queues{"tenantId", "replay": "<erasure log entry id>"}(fromportal (erasure log)) when its start couldn’t erase a restored organisation at once; such a job runs only for an entry of the erasure log’s file that the database misses (elsenot_found), skips the schedule’s checks and mails nobody. - Result:
{"erased": true, "erasureId", "afterRestore"?: true, "organisation", "basis": "switch" | "termination" | "controller_instruction" | null, "instructionTicket"?: <number>, "exportEndedAt", "members", "accountsGone", "files", "accountingArchived": {"<table>": <count>}, "atProviders": {"done", "failed": [{provider, kind, error}], "notSupported"}, "told"}(basisandexportEndedAtare null after a restore that predates the schedule). - Audit:
platform.organisation_erasedwith the result (the organisation’s own trail goes with it). - Runs up to an hour (provider calls).
- Errors:
instruction_invalid(missing/mismatched instruction ticket or replay combination),schedule_changed(refresh after source/date/configuration changes),not_scheduled(no active schedule),not_due(the day is later;error_detailnames it),not_told(the two notices haven’t gone out yet),lab_node(it runs an own lab node: remove it first),still_referenced(a row outside it still points to it).
A successful job and its automatic email are not proof that every external or backup copy has gone. Inspect atProviders, file-deletion warnings and retained records; track outstanding work and give the requested DPA confirmation with exceptions and deadlines. See retention and ADR 0374.
ticket_answered
Section titled “ticket_answered”The reporter’s email after the platform’s team answered a ticket or changed its status in the console. The console writes the message or the status into the ticket tables first, then asks for this mail. It is the same mail the portal sends when its own team answers.
- Payload:
{"ticketId": "<uuid>", "news": "reply" | "status"}. Forstatusthe mail names the ticket’s status as it is now. - Result:
{"told": boolean, "status": "<the ticket's status>"}.toldis false when there is nobody to tell (the reporter’s membership was erased). - Errors:
not_found,wrong_queue(only tickets in theplatformqueue).
material_picture_upload
Section titled “material_picture_upload”A picture for the platform’s standard material list.
- Payload:
{"entryId"?: "<uuid>"}. WithentryId, the picture is also set on that entry ofmaterial_standard_entries. - Blob: the picture, JPEG, PNG or WebP, at most 5 MB.
- Result:
{"picture": "platform/<random>.<ext>"}. The portal serves it at<portal API>/v1/material-pictures/<picture>. - Errors:
validation_failed(no blob),unsupported_image,not_found(no such entry; the picture is stored all the same).
kit_source_file
Section titled “kit_source_file”One of the platform’s own files for the course factory’s source register (ADR 0404). The portal reads it through the same checks as an organisation’s file (type by content, bombs, active content, the malware scan; ADR 0393, 0394), as text only, and deletes it with the job’s blob. What was read is kept sealed with the platform key.
- Payload:
{"name": "<file name>", "title"?: "…", "origin": "own" | "licensed_permanent" | "licensed_analysis", "confirmed"?: true, "declaration"?: "<the confirmation text the person ticked>", "licenceProof"?: "…", "topicId"?: "<uuid>", "replaces"?: "<uuid>"}.- Keeping the text (
own,licensed_permanent) needsconfirmedanddeclaration. licensed_permanentneedslicenceProof.topicIdgives the file to a topic of the platform’s (ADR 0230).replaceswithdraws an older version: its topics take the new one, and what rested on it goes to review.
- Keeping the text (
- Blob: the file, at most the platform’s largest file (
knowledgeFiles.maxFileMb; the blob may hold up to 500 MB for this kind). Recordings are not taken. - Result:
{"sourceId": "<uuid>", "url": "file:sha256:<hex>", "chars": number, "instructionsSuspected": boolean, "replaced": "<uuid>" | null}. - Errors:
validation_failed,too_large,file_type_unsupported,file_refused(the detail says why:file_type_mismatch,active_content,unpacked_too_large,image_too_large,empty),malware_found,scanner_unavailable(try again later),not_found(no such topic of the platform’s).
material_from_link
Section titled “material_from_link”Reads a shop’s page once: its title, its picture (downloaded and kept by the portal) and its price. It uses the platform’s proxy for materials where one is set up.
- Payload:
{"url": "https://…"}(http or https). - Result:
{"found": {"url", "site", "title" | null, "picture" | null, "priceCents" | null, "currency" | null}}. A page that can’t be read still givesdone, with the fieldsnull. - Errors:
validation_failed.
lab_own_projects_delete
Section titled “lab_own_projects_delete”Deletes the old own lab projects of organisation accounts (ADR 0201) that no session is using now, with their saved states. The console shows the report first; it can read the report from the database itself.
- Payload:
{"confirm": true}. - Result:
{"deleted": <projects>, "organisations": <count>}. - Audit:
platform.lab_own_projects.deleted. - Errors:
validation_failed(no confirmation).
retry_video
Section titled “retry_video”Puts a failed video back in the media queue (the console’s attention list, “Retry”): the video becomes queued again with its error cleared, and its failed media jobs start again with fresh attempts. The portal’s media worker takes it up. The console reads the failed video itself; it no longer writes video_assets or media_jobs.
- Payload:
{"videoId": "<uuid>"}. - Result:
{"ok": true}. - Audit:
operator.video_retriedin the video’s organisation. - Errors:
not_found(no such video, or it isn’t failed).
playthrough_start
Section titled “playthrough_start”Queues a play-through of a lab project (ADR 0192). The run copies the project and runs its session as the project’s owner account, since the console’s staff have no portal account. The console follows the run in lab_playthroughs (and can cancel or resume it there, as it does today).
- Payload:
{"projectId": "<uuid>", "kind": "control" | "agent", "attempts"?: 1–5 (default 3), "costCap"?: 0.1–20 euros (default 2)}. - Result:
{"playthroughId": "<uuid>"}. - Audit:
platform.lab_playthrough_started. - Errors:
not_found(no such project, or one without an owner account),lab_no_environment,lab_no_milestones,lab_playthrough_running.
Extensions for the switch (R3)
Section titled “Extensions for the switch (R3)”These four kinds came later, so the platform area can leave the portal (ADR 0262, “Extensions”).
payout_run_release
Section titled “payout_run_release”Releases a prepared marketplace payout run through Mollie, Mangopay, Adyen or Viva, exactly as the portal’s platform area did before R3. The portal locks the run and moves it from prepared to released in one transaction before anything is paid. Then it pays each payout through the provider, with the provider’s idempotency key where it has one. A payout that fails is booked back for the next run.
The console releases Stripe and manual runs itself.
Never twice. A second job for the same run fails with payout_run_not_prepared and pays nothing. A job cut off by a restart fails as interrupted and is never retried. Payouts already released then stay released without a provider reference: look at them in marketplace_payouts and settle them by hand, never by asking again. The job may run up to 2 hours before it counts as cut off.
- Payload:
{"runId": "<uuid>"}. - Result:
{"runId", "payouts": [{"payoutId", "tenantId", "status", "amountCents", "currency", "providerReference" | null, "failedReason" | null}]}, every payout of the run. - Audit:
platform.payout_run_released. - Errors:
not_found,wrong_provider(astripeormanualrun),payout_run_not_prepared(released or cancelled already),mollie_not_configured,mangopay_not_configured,adyen_not_configured,viva_not_configured.
remind_sellers
Section titled “remind_sellers”The reminder mail to the administrators of every organisation the run withheld for missing seller data (marketplace_payouts.status = 'withheld'). It is the same mail the portal sends when it prepares a run. It goes out each time it is asked for, so ask once per run.
- Payload:
{"runId": "<uuid>"}. - Result:
{"organisations": <count withheld>}. - Errors:
not_found.
knowledge_provider_test
Section titled “knowledge_provider_test”A test search through one of the platform’s knowledge providers (ADR 0232). It goes through the portal’s guarded fetch, which refuses private and local addresses. Nothing of it is kept.
- Payload:
{"providerId": "<uuid>", "query": "<2–300 characters>"}. - Result:
{"test": {"ok": boolean, "error": "<why nothing came back>" | null, "hits": [{"title", "url", "chars"}]}}. A provider that answers with an error still givesdone, withok: false. - Errors:
not_found(no such provider, or one of an organisation),validation_failed.
kit_order_cancel
Section titled “kit_order_cancel”Cancels a person’s course order in the course factory (ADR 0251), as the platform area did before R3. The order hears of it: a refund where it was paid, and the person’s notice.
- Payload:
{"jobId": "<uuid>"}, the order’s job inkit_jobs(kind = 'order'). - Result:
{"jobId", "status": "cancelled"}. - Audit:
platform.kit.job_cancelled. - Errors:
not_found,not_an_order(another kind of factory job),kit_job_finished(done, failed or cancelled already).
Contracts in operation (ADR 0267)
Section titled “Contracts in operation (ADR 0267)”organisation_restriction_notice
Section titled “organisation_restriction_notice”The statement of reasons to the organisation’s global administrators, after the console imposed a restriction in organisation_restrictions (Terms for Organisations § 12; DSA Art. 17; P2B Art. 4), or that it was lifted. The console writes the row first (kind, facts, rule, effective_at, imposed_by; for lifting lifted_at, lifted_by, lift_note), then asks for this mail. The restriction stands whatever happens to the mail; asking again mails again.
- Payload:
{"restrictionId": "<uuid>", "event": "imposed" | "lifted"}. - Result:
{"restrictionId", "event", "told": <number of administrators mailed>}. Setsnotified_atorlift_notified_at. - Audit:
operator.restriction_notifiedoroperator.restriction_lift_notified, withdetails.told. - Errors:
not_found,not_lifted(asked forliftedwhile the restriction is in force),mail_failed.
What the portal does with a restriction once effective_at has passed and it isn’t lifted:
catalogue_hidden: the organisation’s public page, its courses and its card leave the catalogue and the directory.marketplace_suspended: no checkout through the marketplace (marketplace_suspended), the route can’t be switched to it, public pages show payments as unavailable; selling with its own account goes on.termination: shown to the organisation with its date; ending the contract and erasing the data are done by the platform’s team.
The operator’s organisation (ADR 0269)
Section titled “The operator’s organisation (ADR 0269)”organisation_create
Section titled “organisation_create”Creates a single instance’s one organisation (platform_operator.operation_mode = 'single') with its owner, a global administrator and trainer, as self-service sign-up does. The owner gets an invitation mail to set a password. Nobody signs up in a single instance, so this is how its organisation comes about. Where the platform runs as a service (saas), organisations sign up themselves and accept the operator’s terms as they do, so the job refuses there.
- Payload:
{"name": "<2–120 characters>", "slug": "<the organisation's address>", "ownerName": "<1–120 characters>", "ownerEmail": "<email>", "locale"?: "de" | "en" | …}. The slug follows the sign-up’s rules (lower case, digits, hyphens). - Result:
{"tenantId", "slug", "ownerUserId", "invited": boolean}.invitedis false when the mail couldn’t be sent; the owner can still use “Forgot password”. - Audit:
operator.organisation_createdin the new organisation, with the slug and the owner’s email. - Errors:
organisations_sign_up_themselves(the platform runs as a service),single_instance_organisation_exists(a single instance has its organisation already),slug_taken,validation_failed.
Organisation sign-ups whose email didn’t arrive (ADR 0453)
Section titled “Organisation sign-ups whose email didn’t arrive (ADR 0453)”An organisation’s sign-up waits in organisation_signups until the owner opens the link of the email (ADR 0422). The console reads the waiting requests through console_organisation_signups() (id, email, organisation name, slug, kind, region, locale, the times, whether a beta code was used; never the token’s or the password’s hash) and asks for these kinds. Each payload names the request only: never a token, hash or password. A request claimed in the last 10 minutes is being confirmed and is left alone (signup_in_progress); one claimed longer ago is stuck and can only be rejected (signup_stuck). signup_gone: the request was confirmed, rejected or deleted after it expired.
organisation_signup_resend
Section titled “organisation_signup_resend”A new link (the old one stops working), at least 24 hours from now, by the same organisation_confirm mail as at sign-up. The new token and the mail go together: if the mail can’t be sent, nothing changes.
- Payload:
{"signupId": "<uuid>"}. - Result:
{"signupId", "expiresAt"}. - Audit:
platform.organisation_signup_resentwith the slug. - Errors:
mail_failed(the earlier link still works),signup_gone,signup_in_progress,signup_stuck.
organisation_signup_extend
Section titled “organisation_signup_extend”The request lives at least 7 more days from now; asked twice, it is the same. Also for a request whose time ran out that is still there.
- Payload:
{"signupId": "<uuid>"}. - Result:
{"signupId", "expiresAt"}. - Audit:
platform.organisation_signup_extendedwith the slug and the new end. - Errors:
signup_gone,signup_in_progress,signup_stuck.
organisation_signup_activate
Section titled “organisation_signup_activate”Makes the organisation without the email’s link, by the link’s own path: claimed once (migration 0463), the organisation, its owner, the beta code’s plan and the contracts as the form accepted them. The owner’s address counts as confirmed by the platform team. The owner signs in with the form’s password; without one, the owner gets the invitation to set one.
- Payload:
{"signupId": "<uuid>", "reason": "<10–2000 characters: how the team checked the person>"}. - Result:
{"signupId", "tenantId", "slug", "ownerUserId", "password": boolean, "invited": boolean}.password: the form had one.invited: the invitation to set one went out. - Audit:
operator.organisation_signup_activatedin the new organisation, with the slug, the owner’s email, the reason andemailConfirmedBy: "platform_team". - Errors:
signup_expired(extend it first),signup_gone,signup_in_progress,signup_stuck,slug_taken(the request goes and its beta code comes back, as at the link).
organisation_signup_reject
Section titled “organisation_signup_reject”The request goes and its beta code comes back unless it already opened an organisation, as on expiry.
- Payload:
{"signupId": "<uuid>"}. - Result:
{"signupId", "deleted": true}. - Audit:
platform.organisation_signup_rejectedwith the slug. - Errors:
signup_gone,signup_in_progress.
A platform account’s restriction (ADR 0297)
Section titled “A platform account’s restriction (ADR 0297)”A person restricts the processing of their data in their own account (Art. 18 GDPR), for the purposes they choose (ai, evaluation, reminders, coursework, communications). For a platform account (accounts.tenant_id is null) the platform is the controller of the account’s own processing and reviews the request; the console reads person_rights, person_restriction_exceptions and person_restriction_lifts (rows with tenant_id is null are the platform’s) and decides through these kinds. An organisation’s own accounts are its administrators’ to decide, in the portal: these kinds refuse them (organisation_account). The console never sets, widens or narrows a restriction. Each kind writes platform.<action> into the platform’s audit trail and an event into person_rights_events (by_platform = true).
person_restriction_exception
Section titled “person_restriction_exception”An exception under Art. 18(2) for one purpose: that purpose’s processing goes on where the platform processes; the person sees it with its reason and is emailed.
- Payload:
{"accountId": "<uuid>", "purpose": "ai" | "evaluation" | "reminders" | "coursework" | "communications", "basis": "consent" | "legal_claims" | "protection_of_others" | "public_interest", "reason": "<10–2000 characters, shown to the person>"}. - Result:
{"exceptionId", "restriction": <the platform's view: restriction, exceptions, lift, noticeDays>}. - Audit:
platform.person_restriction_exception_granted. - Errors:
not_found,organisation_account,not_restricted,purpose_not_restricted,exception_exists.
person_restriction_exception_end
Section titled “person_restriction_exception_end”- Payload:
{"accountId": "<uuid>", "exceptionId": "<uuid>"}. Result:{"restriction"}. Audit:platform.person_restriction_exception_ended. Errors:not_found,organisation_account,not_restricted.
person_restriction_lift
Section titled “person_restriction_lift”Lifts the restriction where the platform processes (Art. 18(3)): the person is emailed first, with the reason; only when that email went out is the lifting recorded, and it counts from 7 days later (effective_at). Nothing is lifted by time alone.
- Payload:
{"accountId": "<uuid>", "reason": "<10–2000 characters, shown to the person>"}. - Result:
{"lift": {"id", "reason", "announcedAt", "effectiveAt", "effective"}}. Audit:platform.person_restriction_lift_announced. - Errors:
not_found,organisation_account,not_restricted,lift_announced(one is announced already),notice_failed(the email couldn’t be sent: nothing changed, ask again later).
person_restriction_lift_cancel
Section titled “person_restriction_lift_cancel”Takes the platform’s lifting back, before or after it took effect.
- Payload:
{"accountId": "<uuid>"}. Result:{"restriction"}. Audit:platform.person_restriction_lift_cancelled. Errors:not_found,organisation_account,not_restricted.
Notices and statements of reasons (ADR 0332)
Section titled “Notices and statements of reasons (ADR 0332)”The console reads content_notices (with content_notice_decisions), statements_of_reasons and account_moderation; it never writes them. What changes content, an account or sends a mail comes through these jobs.
content_notice_enter
Section titled “content_notice_enter”A notice that came by email to the address on the website’s contact point page (DSA Art. 16). From here it runs like one from the portal: routed to the organisation responsible for the item or to the platform’s team (illegal_child_safety always to the platform’s team), its receipt mailed to the reporter at once and, for an organisation’s notice, a mail to its administrators (ADR 0351).
- Payload:
{"reporterName": "<up to 200>", "reporterEmail": "<email>", "reporterLocale": "en"|"de"|"fr"|"es"|"it"|"et"|null, "kind": "<item kind or other>", "itemId": "<uuid>"|null, "link": "<up to 2000>"|null, "label": "<up to 300>", "ground": "illegal"|"terms", "category": "<category of the ground>", "explanation": "<10 to 5000>", "goodFaith": true, "receivedAt": "<ISO time, not in the future>"}. A kind other thanotherneedsitemIdorlink. - Result:
{"noticeId", "ref", "handler": "organisation"|"platform", "receiptSent": <bool>}. - Audit:
platform.notice_entered. - Errors:
validation_failed,not_found(no such item).
content_notice_decide
Section titled “content_notice_decide”The platform’s decision on a notice, also on one an organisation decided (a later decision stands). Does the measure (removing into the trash, not to be restored; restricting who sees it; restricting or suspending the account), records the decision and the statement of reasons, mails the reporter (Art. 16(5)) and the person concerned (Art. 17).
- Payload:
{"noticeId": "<uuid>", "decision": "removed"|"restricted"|"account_restricted"|"account_suspended"|"no_action", "facts": "<10 to 3000>", "ground": "law"|"terms"|null, "rule": "<provision or clause, up to 500>", "automated": <bool>, "until": "<ISO time>"|null}. A measure needsgroundandrule. - Result:
{"noticeId", "statementId"|null, "reporterTold": <bool>, "statementSent": <bool>|null}. A mail the server refused is tried again by the portal (a few times). - Audit:
platform.notice_decided, andplatform.account_restricted/platform.account_suspendedfor a measure on an account. - Errors:
not_found,decision_not_possible(the kind can’t be so decided),ground_required,item_gone,no_account.
account_moderation
Section titled “account_moderation”Restricts (restricted: no posts, no messages) or suspends (suspended: no sign-in; every session and access token ends at once) an account, outside a notice too, with its statement of reasons mailed. A measure in force is replaced.
- Payload:
{"accountId": "<uuid>", "kind": "restricted"|"suspended", "facts": "<10 to 3000>", "ground": "law"|"terms", "rule": "<3 to 500>", "until": "<ISO time>"|null}. - Result:
{"measureId", "statementId", "statementSent": <bool>}. - Errors:
not_found,validation_failed.
account_moderation_lift
Section titled “account_moderation_lift”- Payload:
{"accountId": "<uuid>", "note": "<5 to 2000>"}. - Result:
{"accountId", "lifted": true}. Audit:platform.account_measure_lifted. - Errors:
not_restricted(no measure in force).
The platform’s decisions on the community board (ADR 0450)
Section titled “The platform’s decisions on the community board (ADR 0450)”The console’s team moderates the general areas and the rooms of the platform’s Creative Space. Every other area is its organisation’s, and these jobs refuse it with not_platform_area. Statements of reasons name the operator by the job’s email.
community_report_resolve
Section titled “community_report_resolve”Keeps or hides a reported post. One decision settles every report of the post, and the post’s open notices are decided as the platform’s.
- Payload:
{"reportId": "<uuid>", "outcome": "kept"|"hidden", "facts": "<up to 3000; 10 or more to hide>", "ground": "law"|"terms", "rule": "<up to 500>"}. - Result:
{"postId", "outcome", "statementId"|null, "notices": <n>, "reports": <n>}. Audit:platform.community_report_resolved. - Errors:
not_found,report_resolved,reason_required,not_platform_area.
community_post_remove
Section titled “community_post_remove”Removes a post into its author’s trash, marked as moderated (nobody restores it), and mails the statement of reasons.
- Payload:
{"postId": "<uuid>", "reason": "<10 to 3000>", "rule": "<up to 500>"}. - Result:
{"postId", "statementId"|null}. Audit:platform.community_post_removed. - Errors:
not_found,post_deleted,not_platform_area.
community_mute
Section titled “community_mute”- Payload:
{"areaId": "<uuid>", "accountId": "<uuid>", "days": <1 to 365>, "reason": "<1 to 500>", "rule": "<up to 500>"}. - Result:
{"areaId", "accountId", "until", "statementId"}. Audit:platform.community_muted. - Errors:
not_found,community_mute_team(a named community moderator),not_platform_area.
community_unmute
Section titled “community_unmute”- Payload:
{"areaId": "<uuid>", "accountId": "<uuid>"}. - Result:
{"areaId", "accountId", "unmuted": true}. Audit:platform.community_unmuted. - Errors:
not_found,not_muted,not_platform_area.
Errors every kind can give
Section titled “Errors every kind can give”| Code | Meaning |
|---|---|
unknown_kind |
This portal doesn’t know the kind (it is older than the console). |
validation_failed |
The payload doesn’t match; error_detail names the field. |
interrupted |
The portal stopped while doing the job. Look at the outcome, then ask again if needed. |
internal |
Something unexpected; the portal’s log has the details. |