---
title: "Post Header Custom Code"
method: POST
path: "/site/{site_id}/custom_header_code/"
---

# Post Header Custom Code

`POST /site/{site_id}/custom_header_code/`

## Request

- Base URL: `https://api.simple.ink` (the document declares no server; this is the origin it was published from)
- URL: `https://api.simple.ink/site/{site_id}/custom_header_code/`
- Auth: none declared

Save site header custom code inserted by user.

## Path parameters

- `site_id` string, uuid, required

## Request body

- SiteCustomCodeIn: Contains a custom code POST request body. Should be used for /site/{site_title}/header_custom_code, .../css_custom_code and ../body_custom_code endpoints.
  - `code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/simple/apis/simple-api.md) - [All operations](https://skmtc.dev/simple/apis/simple-api/llms.txt) - [OpenAPI document](https://skmtc.dev/simple/apis/simple-api/revisions/ebca3feff579?raw)
