Skip to navigation

Upsert Website

View as Markdown

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

The body and rules are the same as Create Website. 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 URL is matched exactly as sent, so https://example.org and https://example.org/ are different websites. A soft-deleted website with the same URL is restored.

Headers

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

Request

This endpoint expects an object.
namestringRequired
urlstringRequiredformat: "uri"

Response

Created
successboolean
statusinteger
dataobject