cURL
curl -X PATCH "https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/themes/projects/{projectId}/files" \
-H "Authorization: Bearer $JOIN_MARKT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"baseRevision":1}'const res = await fetch("https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/themes/projects/{projectId}/files", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.JOIN_MARKT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"baseRevision": 1
}),
})
const data = await res.json()import os, requests
res = requests.patch(
"https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/themes/projects/{projectId}/files",
headers={"Authorization": f"Bearer {os.environ['JOIN_MARKT_API_KEY']}"},
json={
"baseRevision": 1
},
)
data = res.json(){}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}Write theme files
Change files of a theme project. Send the current revision, so two editors cannot overwrite each other.
Scope: theme:write
This changes real data in your store, including when you press Send here.
PATCH
/
api
/
merchant
/
v1
/
stores
/
{storeId}
/
themes
/
projects
/
{projectId}
/
files
cURL
curl -X PATCH "https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/themes/projects/{projectId}/files" \
-H "Authorization: Bearer $JOIN_MARKT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"baseRevision":1}'const res = await fetch("https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/themes/projects/{projectId}/files", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.JOIN_MARKT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"baseRevision": 1
}),
})
const data = await res.json()import os, requests
res = requests.patch(
"https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/themes/projects/{projectId}/files",
headers={"Authorization": f"Bearer {os.environ['JOIN_MARKT_API_KEY']}"},
json={
"baseRevision": 1
},
)
data = res.json(){}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}Authorizations
Your Merchant API key. Create one in Dashboard → Developers → API keys.
Path Parameters
Your store id. Find it in Dashboard → Developers, or in GET /stores with MCP.
Theme project id.
Body
application/json
Response
The new revision.
The response is of type object.

