Create a site-wide HTML embed.

post/site/{site_name}/sitewidehtml

Request

  • Base URL
    https://api-sandbox.duda.co/api/integrationhub/application
  • URL
    https://api-sandbox.duda.co/api/integrationhub/application/site/{site_name}/sitewidehtml
  • Auth
    none required

Path parameters

site_namestring required

Headers

x-duda-access-tokenstring

The specific access token to access this site API.

authorizationstring

Your App Account's username and password, base64'd.

Request body

location'BODY' | 'HEAD' | 'CONTENT_END' | 'BEFORE_SCRIPTS'

Location of where the code will be added in the website.

markupstring

The raw HTML you want to embed into the site.

Response

200

locationstring
markupstring
uuidstring

Example response

{
  "location": "BODY",
  "markup": "string",
  "uuid": "string"
}

Changes