Skip to navigation

Upsert FAQ

View as Markdown

Creates the faq, or updates the one with the same slug. Needs a key with Website Content: Read and Write (website-content:write).

The body and rules are the same as Create FAQ. Sending an identical payload again writes nothing: no duplicate, the id is kept and updated_at does not change, so a migration can be re-run safely.

The match is on the slug you send, or on the slug of the question when you send none. Without a slug, rewording a question changes its slug and creates a new FAQ, so send a stable slug if questions may be reworded.

Headers

GorillaDash-Api-KeystringOptional
Gorilla Dash API Key
GorillaDash-Api-SecretstringOptional
Gorilla Dash API Secret

Request

This endpoint expects an object.
faq_category_idintegerRequired
questionstringRequired
answerstringRequired
slugstringRequired
sortintegerRequired

Response

Created
successboolean
statusinteger
dataobject