Admin update FAQ
FAQs
Admin update FAQ
Edit a FAQ’s text, order, or published state.
PATCH
Admin update FAQ
Overview
Partially updates a FAQ. Send only the fields you want to change — e.g. flipisPublished to publish/unpublish, or change order to reposition it.
Authentication
Bearer <accessToken> with scope: 'admin' required (requireAdmin).
Role-gated to SUPER and MODERATOR. FINANCE is read-only on the FAQs surface.
Path parameters
| Param | Type | Notes |
|---|---|---|
id | string | 24-char Mongo ObjectId of the FAQ. |
Request body
All fields optional, but at least one must be present.| Field | Type | Constraints |
|---|---|---|
question | string | 1..300 chars, trimmed. |
answer | string | 1..5000 chars, trimmed. |
order | integer | ≥ 0. |
isPublished | boolean | true shows it on the app; false is a draft. |
Response — 200 OK
Returns the updated FAQ row.
Error responses
| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION_FAILED | Empty body, or a field out of range. |
| 401 | UNAUTHENTICATED | Missing, malformed, expired, or non-admin-scope token. |
| 403 | FORBIDDEN | Admin authenticated but role is FINANCE (read-only). |
| 404 | NOT_FOUND | No FAQ with that id. |
Side effects
- Updates the row in the
faqscollection. - Writes a
faq.updatedadmin audit-log row.