Bulk-backfill created_at / updated_at for seeded entities
POST /admin/seed/timestamps
Operator-tooling endpoint for the demo-seed loader
(see seed/SEED_INSTRUCTIONS.md). NOT for general
operator use — gated on system.admin; not surfaced
in the admin UI.
Accepts an array of (kind, id, created_at, updated_at,
last_reviewed_at?) tuples and bulk-updates the
corresponding rows in assets / posts / comments.
Idempotent: re-running the same payload produces the
same end state (UPDATE stamps the same value twice).
Cap: 1,000 items per request. Larger seeds split into multiple calls.
Emits ONE admin.seed.timestamps_backfilled audit
event per call summarising per-kind counts.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
object
Domain table to UPDATE.
Defaults to created_at when omitted.
Responses
Section titled “ Responses ”Backfill applied.
object
Items whose id didn’t match any existing row.
Apply scripts treat this as a soft failure
(operator log + continue).
Malformed request
object
Human-readable error summary
Example
the request could not be completedAuthentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completed