fix: placement send func
This commit is contained in:
@@ -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`
|
||||
),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user