Theme templates
Publishes the template
Publishes the template’s current version, or the version given in version, so the storefront renders it. Requires the application_themes update permission. Global templates cannot be published (403). If the theme is connected to a Git repository, the change is also pushed there in the background.
POST
/
api
/
application_theme_templates
/
{id}
/
publish
Publishes the template
curl --request POST \
--url https://api.fluid.app/api/application_theme_templates/{id}/publish \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/application_theme_templates/{id}/publish"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/application_theme_templates/{id}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/application_theme_templates/{id}/publish",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/application_theme_templates/{id}/publish"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/application_theme_templates/{id}/publish")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/application_theme_templates/{id}/publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"application_theme_template": {
"id": 48213,
"name": "Paper Product Page",
"content": "{% layout 'theme' %}\n<section class=\"product\">\n <h1>{{ product.title }}</h1>\n {{ product.description }}\n</section>",
"status": "active",
"themeable_type": "product",
"company_id": 1405,
"variables": {
"show_breadcrumbs": true
},
"created_at": "2026-09-08T14:22:31Z",
"updated_at": "2026-09-21T16:05:47Z",
"default": false,
"translations": {},
"hide_navbar": false,
"use_active_application_theme": false,
"country_ids": [
214
],
"stylesheet": null,
"stylesheet_tag_injected": true,
"stylesheet_column_hidden": true,
"global": false,
"application_theme_id": 7310,
"source": "theme",
"droplet_name": null,
"app_extension_id": null,
"extension_uri": null,
"versions": [
{
"version": 3,
"created_at": "2026-09-21T16:05:47Z",
"published": true,
"current": true,
"author_id": 90412,
"author_name": "Michael Scott"
},
{
"version": 2,
"created_at": "2026-09-15T10:12:03Z",
"published": false,
"current": false,
"author_id": 90415,
"author_name": "Pam Beesly"
}
],
"navbar_template_id": 48190,
"footer_template_id": 48191,
"assigned_themeable_ids": [
30117,
30118
],
"url": "https://shop.dundermifflin.com/products/20lb-copy-paper?preview=true&template_id=48213",
"available_theme_blocks": []
},
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-22T15:04:12Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Bearer token authentication
Path Parameters
Query Parameters
Version to publish, from the template's versions history. Defaults to the current version.
⌘I
Publishes the template
curl --request POST \
--url https://api.fluid.app/api/application_theme_templates/{id}/publish \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/application_theme_templates/{id}/publish"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/application_theme_templates/{id}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/application_theme_templates/{id}/publish",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/application_theme_templates/{id}/publish"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/application_theme_templates/{id}/publish")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/application_theme_templates/{id}/publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"application_theme_template": {
"id": 48213,
"name": "Paper Product Page",
"content": "{% layout 'theme' %}\n<section class=\"product\">\n <h1>{{ product.title }}</h1>\n {{ product.description }}\n</section>",
"status": "active",
"themeable_type": "product",
"company_id": 1405,
"variables": {
"show_breadcrumbs": true
},
"created_at": "2026-09-08T14:22:31Z",
"updated_at": "2026-09-21T16:05:47Z",
"default": false,
"translations": {},
"hide_navbar": false,
"use_active_application_theme": false,
"country_ids": [
214
],
"stylesheet": null,
"stylesheet_tag_injected": true,
"stylesheet_column_hidden": true,
"global": false,
"application_theme_id": 7310,
"source": "theme",
"droplet_name": null,
"app_extension_id": null,
"extension_uri": null,
"versions": [
{
"version": 3,
"created_at": "2026-09-21T16:05:47Z",
"published": true,
"current": true,
"author_id": 90412,
"author_name": "Michael Scott"
},
{
"version": 2,
"created_at": "2026-09-15T10:12:03Z",
"published": false,
"current": false,
"author_id": 90415,
"author_name": "Pam Beesly"
}
],
"navbar_template_id": 48190,
"footer_template_id": 48191,
"assigned_themeable_ids": [
30117,
30118
],
"url": "https://shop.dundermifflin.com/products/20lb-copy-paper?preview=true&template_id=48213",
"available_theme_blocks": []
},
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-22T15:04:12Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}