fix: placement send func

This commit is contained in:
ivannoskov
2026-02-02 21:49:57 +03:00
parent 233bdf7907
commit 6b16bfa6e2
2 changed files with 33 additions and 8 deletions

View File

@@ -140,4 +140,17 @@ export const placementsApi = {
`/workspaces/${workspaceId}/placements/${placementId}/views/history`,
{ params }
),
/**
* Build creative for placement (generate invite link and send to user via bot)
* POST /workspaces/{workspace_id}/projects/{project_id}/placements/{placement_id}/creative
*/
sendCreative: (
workspaceId: string,
projectId: string,
placementId: string
) =>
api.post<{ id: string; name: string; text: string }>(
`/workspaces/${workspaceId}/projects/${projectId}/placements/${placementId}/creative`
),
};