Themes
Publishes the theme
Publishes the theme so the storefront serves its latest content, then syncs it to any connected Git repository. Pass the optional version query parameter to publish a specific past version instead; an unknown version returns 404. Requires a company Bearer token with permission to update themes. Returns 422 when the theme’s member configuration references a template or navigation item that does not exist.
POST
/
api
/
application_themes
/
{id}
/
publish
Publishes the theme
curl --request POST \
--url https://api.fluid.app/api/application_themes/{id}/publish \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/application_themes/{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_themes/{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_themes/{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_themes/{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_themes/{id}/publish")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/application_themes/{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": {
"id": 48213,
"name": "Scranton Storefront",
"description": null,
"status": "active",
"source": "fluid",
"variables": "{\"primary_color\":\"#1B4F9C\",\"accent_color\":\"#F2C230\",\"font_family\":\"Courier Prime\"}",
"created_at": "2026-09-02T14:12:08Z",
"updated_at": "2026-09-18T16:40:55Z",
"version": "1.0",
"custom_stylesheet": null,
"global_stylesheet": null,
"theme_stylesheet_tag_injected": true,
"theme_stylesheet_columns_hidden": true,
"company_id": 1405,
"cover_image": "https://cdn.fluid.app/themes/48213/scranton-storefront-cover.jpg",
"outdated": false,
"versions": [
{
"version": 12,
"created_at": "2026-09-18T16:40:55Z",
"published": true,
"current": true,
"author_id": 90417,
"author_name": "Michael Scott"
},
{
"version": 11,
"created_at": "2026-09-15T09:03:21Z",
"published": false,
"current": false,
"author_id": 90422,
"author_name": "Pam Beesly"
}
],
"application_theme_templates": [
{
"id": 771204,
"name": "Home page",
"status": "active",
"themeable_type": "home_page",
"company_id": 1405,
"default": true,
"global": false,
"application_theme_id": 48213,
"source": "theme",
"content": "{% section 'hero-banner' %}\n{% section 'featured-products' %}",
"created_at": "2026-09-02T14:12:09Z",
"updated_at": "2026-09-17T11:26:44Z"
}
],
"images": [
{
"id": 30581,
"url": "https://cdn.fluid.app/themes/48213/scranton-storefront-cover.jpg",
"position": 0
}
],
"git_sync_repos": [
{
"id": 5127,
"role": "primary",
"status": "connected",
"repo_full_name": "fluid-gitsync/theme-48213",
"default_branch": "main",
"last_push_at": "2026-09-18T16:41:02Z",
"last_pull_at": null,
"status_updated_at": "2026-09-02T14:12:31Z",
"last_error": null
}
]
},
"meta": {
"request_id": "3f9c2a7e-6b1d-4e8a-9c52-7d0e4b1a2f63",
"timestamp": "2026-09-18T16:40:56Z"
}
}{
"message": "<string>"
}{
"status": "<string>",
"data": {
"error": "<string>"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}⌘I
Publishes the theme
curl --request POST \
--url https://api.fluid.app/api/application_themes/{id}/publish \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/application_themes/{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_themes/{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_themes/{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_themes/{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_themes/{id}/publish")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/application_themes/{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": {
"id": 48213,
"name": "Scranton Storefront",
"description": null,
"status": "active",
"source": "fluid",
"variables": "{\"primary_color\":\"#1B4F9C\",\"accent_color\":\"#F2C230\",\"font_family\":\"Courier Prime\"}",
"created_at": "2026-09-02T14:12:08Z",
"updated_at": "2026-09-18T16:40:55Z",
"version": "1.0",
"custom_stylesheet": null,
"global_stylesheet": null,
"theme_stylesheet_tag_injected": true,
"theme_stylesheet_columns_hidden": true,
"company_id": 1405,
"cover_image": "https://cdn.fluid.app/themes/48213/scranton-storefront-cover.jpg",
"outdated": false,
"versions": [
{
"version": 12,
"created_at": "2026-09-18T16:40:55Z",
"published": true,
"current": true,
"author_id": 90417,
"author_name": "Michael Scott"
},
{
"version": 11,
"created_at": "2026-09-15T09:03:21Z",
"published": false,
"current": false,
"author_id": 90422,
"author_name": "Pam Beesly"
}
],
"application_theme_templates": [
{
"id": 771204,
"name": "Home page",
"status": "active",
"themeable_type": "home_page",
"company_id": 1405,
"default": true,
"global": false,
"application_theme_id": 48213,
"source": "theme",
"content": "{% section 'hero-banner' %}\n{% section 'featured-products' %}",
"created_at": "2026-09-02T14:12:09Z",
"updated_at": "2026-09-17T11:26:44Z"
}
],
"images": [
{
"id": 30581,
"url": "https://cdn.fluid.app/themes/48213/scranton-storefront-cover.jpg",
"position": 0
}
],
"git_sync_repos": [
{
"id": 5127,
"role": "primary",
"status": "connected",
"repo_full_name": "fluid-gitsync/theme-48213",
"default_branch": "main",
"last_push_at": "2026-09-18T16:41:02Z",
"last_pull_at": null,
"status_updated_at": "2026-09-02T14:12:31Z",
"last_error": null
}
]
},
"meta": {
"request_id": "3f9c2a7e-6b1d-4e8a-9c52-7d0e4b1a2f63",
"timestamp": "2026-09-18T16:40:56Z"
}
}{
"message": "<string>"
}{
"status": "<string>",
"data": {
"error": "<string>"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}