Save FAQ entries

Replace the FAQ entries for a company. Within a DB transaction it deletes all existing FAQ entries for the given company_id + type, then inserts the supplied FAQ entries.

Auth: Both — authentication bearer token. Target company comes from the company_id body field; no ownership/partner-tree scoping, so any authenticated Partner or Account user can write FAQs for any company id. Role only changes which company_id you pass.

Rate limit: No rate limit.

Request

  • Body:
FieldTypeRequiredNotes
company_idintegerrequiredMust be an existing account.
typestringoptional (nullable)One of landing_page, widget. The endpoint stores scopes the pre-delete and on each row; if omitted, rows are deleted/saved with type = null.
faqsarrayrequiredFull replacement set of FAQ entries.
faqs.*.questionstringrequiredFAQ question text.
faqs.*.answerstringrequiredFAQ answer text.
faqs.*.statusstringrequiredOne of active, inactive.

Response{ data. } envelope (nested). The controller echoes back the submitted faqs array (not the persisted models, so no id/timestamps).

  • data.status (string) — literal "success".
  • data.message (string) — "FAQ saved successfully".
  • data.data (array) — the faqs array exactly as submitted.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
string
faqs
array of objects
faqs
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json