---
title: "Update Design Code"
method: PATCH
path: "/blogs/design-code"
tags: ["Design Code"]
---

# Update Design Code

`PATCH /blogs/design-code`

Partially update design code fields. Only provided fields will be updated. Set a field to null to clear it. Requires editor permission or higher on the blog.

## Request body

- DesignCodeUpdateRequest
  - `jsonapi` object, required — JSON:API version metadata included in every JSON:API response.
    - `version` string, required — Implemented JSON:API version.
  - `data` object, required — Design code payload to update.
    - `type` 'blog_design_code', required — Resource type identifier. Always `blog_design_code`.
    - `attributes` object, required — Design code fields to update. Only included fields are changed. Set a field to null to clear it.
      - `custom_banner_code` string, nullable — Handlebars template for the blog banner area
      - `custom_layout_code` string, nullable — Handlebars template for the blog page layout
      - `custom_css_code` string, nullable — Custom CSS applied to the blog
      - `custom_header_code` string, nullable — Custom HTML for the blog header
      - `custom_footer_code` string, nullable — Custom HTML for the blog footer

## Response `200`

Design code updated successfully

## Other responses

- `400` — Bad request
- `401` — Authentication failed
- `403` — Insufficient permissions
- `500` — 서버 내부 오류

---

[API](https://skmtc.dev/inblog/apis/inblog-api.md) · [All operations](https://skmtc.dev/inblog/apis/inblog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inblog/inblog-api/revisions/445daf773d30/schema)
