---
search:
  tags:
    - Themes
    - POST
seo:
  description: >-
    Turns an uploaded public/ CSS or JS file into an editable template at…
    Reference for the POST /themes/{theme_id}/files/editable endpoint in the
    Bolder API v2.
sidebar:
  label: Make an uploaded file editable
  badge: POST
title: Make an uploaded file editable
type: openapi-operation
---
Turns an uploaded `public/` CSS or JS file into an editable template at the same path, if it is valid
UTF-8 and at most 65,535 bytes. Its URL does not change.

`POST /themes/{theme_id}/files/editable`

**Request body** (`application/json`, required)

- `path` (string, required)

Request body example:

```json
{
  "path": "public/js/vendor.min.js"
}
```

**Responses**

- `200` — The new template
- `401` — Unauthorized
- `403` — Access denied
- `422` — No uploaded file at that path, or it can't be a template (type, size or encoding)

Response example, 200:

```json
{
  "_links": {
    "property1": {
      "href": "string",
      "templated": true,
      "method": "get",
      "title": "string",
      "type": "string"
    },
    "property2": {
      "href": "string",
      "templated": true,
      "method": "get",
      "title": "string",
      "type": "string"
    }
  },
  "id": "string",
  "file_name": "layout.html",
  "path": "string",
  "body": "string",
  "is_section": true,
  "schema": {},
  "parent_commit": "string",
  "updated_on": "2019-08-24T14:15:22Z",
  "warnings": [
    {
      "severity": "error",
      "code": "syntax",
      "message": "string",
      "line": 0
    }
  ]
}
```
