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:
co-authored by
Cursor
parent
36180cda2b
commit
b861ab3dc1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user