Skip to navigation

Create Website

View as Markdown

Creates a website. Needs a key with Website Content: Read and Write (website-content:write).

FieldTypeRules
namestringRequired, max 255.
urlstringRequired, max 255, an http or https URL.

A new website gets its GraphQL client automatically; its id comes back as graphql_client_id. The client secret is never returned through the API; copy it from the website’s settings in Gorilla Dash.

If a website with the same url already exists, this returns 422. Use Upsert Website when you do not know whether it exists.

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

Errors

403
Forbidden Error
422
Unprocessable Entity Error