Skip to navigation

Upsert Form

View as Markdown

Creates the form, 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 Form. 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.

A deleted form with the same slug is restored. A slug that belongs to a tribe’s form returns 409; edit that form in Gorilla Dash.

Headers

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

Request

This endpoint expects an object.
slugstringRequired
namestringRequired
statusstringRequired
notify_emailslist of stringsRequired
fieldslist of objectsRequired

Response

Created
successboolean
statusinteger
dataobject