---
title: "Create Snippet"
method: POST
path: "/sites/multiscreen/{site_name}/snippets"
---

# Create Snippet

`POST /sites/multiscreen/{site_name}/snippets`

Create a site-wide HTML embed.

## Path parameters

- `site_name` string, required

## Request body

- object
  - `location` 'BODY' | 'HEADER' | 'CONTENT_END' | 'BEFORE_SCRIPTS' — Location of where the code will be added in the website.
  - `markup` string — The raw HTML you want to embed into the site.

## Response `200`

200

- object
  - `id` string
  - `location` string
  - `markup` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/duda/apis/partner-api.md) · [All operations](https://skmtc.net/duda/apis/partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/duda/partner-api/revisions/5b9208270ed1/schema)
