v1

latestOpenAPI 3.1.02026-07-242470655.6 KB

Create Snippet

Create a site-wide HTML embed.

post/sites/multiscreen/{site_name}/snippets

Path parameters

site_namestring required

A valid site name of an existing website

Request body

location'BODY' | 'HEADER' | '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

idstring
locationstring
markupstring

Example response

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