app.tempomusic.staff.takedownSubject
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Flip `moderation_status` on a subject row to a non-zero takedown class. Read paths immediately refuse to serve the subject (404 on getPost / getReply / actor reads). Re-takedown against an already-taken-down subject is permitted as a severity escalation (e.g. `reported` → `legalHold`) or to amend the reason; each call writes a new audit row. Scoped to the subject row ONLY: an account takedown flips the profile row (offensive avatar/bio case) and does not touch the account's content — hiding everything an account produced is the job of suspendAccount/banAccount, which are enforced at read time, trivially reversible and cover content posted while sanctioned. Requires the caller to be an active moderator.",
"errors": [
{
"description": "Caller is not an active moderator.",
"name": "Forbidden"
},
{
"description": "Malformed request: missing required field, or invalid takedown class.",
"name": "InvalidRequest"
},
{
"description": "The subject does not resolve to any row in the AppView projection.",
"name": "SubjectNotFound"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"class": {
"ref": "app.tempomusic.staff.defs#takedownClass",
"type": "ref"
},
"closeAttachedReports": {
"default": true,
"description": "When true, all reports against this subject still in `open` or `underReview` are marked `actioned` in the same transaction; each closed report gets a `reportClosedByCascade` audit row linked to the takedown's audit id.",
"type": "boolean"
},
"notifyUser": {
"default": false,
"description": "When true, persist a moderation notice addressed to the affected user (content author or account holder). Delivery is out of scope.",
"type": "boolean"
},
"reason": {
"description": "Free-text reason recorded in the audit log. Mandatory.",
"maxLength": 1000,
"type": "string"
},
"subject": {
"refs": [
"app.tempomusic.moderation.defs#postSubject",
"app.tempomusic.moderation.defs#replySubject",
"app.tempomusic.moderation.defs#accountSubject"
],
"type": "union"
}
},
"required": [
"subject",
"class",
"reason"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"attachedReportsClosed": {
"description": "Number of attached reports auto-closed in this transaction. Zero when closeAttachedReports=false, or when there were no open/under-review reports to close.",
"minimum": 0,
"type": "integer"
},
"auditEntryId": {
"minimum": 1,
"type": "integer"
},
"moderationStatus": {
"description": "Final moderation_status value on the subject row. 1 = reported, 2 = tagged, 3 = legalHold.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"moderationStatus",
"attachedReportsClosed",
"auditEntryId"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "app.tempomusic.staff.takedownSubject",
"lexicon": 1
}
Metadata
- DID
-
did:plc:pxsuqmultto34oks44m2lgxm - CID
-
bafyreid5wwq2vieics4om7aigm3kmbl5in6uykj32zpfiwqoygd6nq4nwq - Indexed At
- 2026-08-24 09:06 UTC
- AT-URI
-
at://did:plc:pxsuqmultto34oks44m2lgxm/com.atproto.lexicon.schema/app.tempomusic.staff.takedownSubject
Referenced Schemas (4)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
app.tempomusic.staff.suspendAccount procedure
Suspend an account: all of its content disappears from the public read surface (feeds, single fetches, threads, notifications) while the row is active. Reversible via unsuspendAccount; optionally time-boxed via `until` …
-
app.tempomusic.staff.banAccount procedure
Permanently ban an account: all of its content disappears from the public read surface and no surface can lift the state. Escalating an active suspension replaces it. Requires the `superAdmin` role. Writes an `accountBa…
-
app.tempomusic.staff.restoreSubject procedure
Flip `moderation_status` back to 0 on a previously taken-down subject row. Writes a `subjectRestore` audit row. Trivially symmetric with takedownSubject — both act on the subject row only; lifting an account-wide sanc…
-
app.tempomusic.staff.dismissReport procedure
Close a report without acting on the subject. Valid from `open` (fast-path obvious junk) and from `underReview`. Writes a single `reportDismissed` audit row. Fast-path dismissal directly from `open` does NOT emit a `rep…
-
app.tempomusic.staff.unsuspendAccount procedure
Lift an account suspension: deletes the current state row (history stays in the audit log) and instantly readmits the account's content on the public surface. Also accepts a LAPSED suspension (removes the stale row). Ca…