refactor: update funnel description endpoint from POST /save to PUT /{funnel_id}

This commit is contained in:
ahmadshaheer 2025-05-28 11:29:03 +04:30 committed by Shivanshu Raj Shrivastava
parent d62b1cf49f
commit 091dc91f76
No known key found for this signature in database
GPG Key ID: D34D26C62AC3E9AE

View File

@ -167,8 +167,8 @@ interface UpdateFunnelDescriptionPayload {
export const saveFunnelDescription = async (
payload: UpdateFunnelDescriptionPayload,
): Promise<SuccessResponse<FunnelData> | ErrorResponse> => {
const response: AxiosResponse = await axios.post(
`${FUNNELS_BASE_PATH}/save`,
const response: AxiosResponse = await axios.put(
`${FUNNELS_BASE_PATH}/${payload.funnel_id}`,
payload,
);