Refresh static image slots from the website catalog.

The dashboard can import and drop slots from the live site instead of creating them by hand.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-17 09:55:03 +03:30
co-authored by Cursor
parent 36180cda2b
commit b861ab3dc1
7 changed files with 128 additions and 37 deletions
@@ -37,6 +37,19 @@ export async function createWebsiteStaticImageSlot(
})
}
export async function syncWebsiteStaticImageSlots() {
return apiRequest<{
message: string
created: number
updated: number
deleted: number
items: WebsiteStaticImageSlot[]
}>(businessPath('/sync'), {
method: 'POST',
auth: true,
})
}
export async function updateWebsiteStaticImageSlot(
slotId: string,
payload: UpdateWebsiteStaticImageSlotPayload,