diff --git a/frontend/src/api/actions/createCustomPlaylist.ts b/frontend/src/api/actions/createCustomPlaylist.ts index 76717070..722203c0 100644 --- a/frontend/src/api/actions/createCustomPlaylist.ts +++ b/frontend/src/api/actions/createCustomPlaylist.ts @@ -1,9 +1,9 @@ import APIClient from '../../functions/APIClient'; const createCustomPlaylist = async (playlistId: string) => { - return APIClient('/api/playlist/', { + return APIClient('/api/playlist/custom/', { method: 'POST', - body: { data: { create: playlistId } }, + body: { playlist_name: playlistId }, }); }; diff --git a/frontend/src/api/actions/updateCustomPlaylist.ts b/frontend/src/api/actions/updateCustomPlaylist.ts index bef8403d..31d8a1e4 100644 --- a/frontend/src/api/actions/updateCustomPlaylist.ts +++ b/frontend/src/api/actions/updateCustomPlaylist.ts @@ -7,7 +7,7 @@ const updateCustomPlaylist = async ( playlistId: string, videoId: string, ) => { - return APIClient(`/api/playlist/${playlistId}/`, { + return APIClient(`/api/playlist/custom/${playlistId}/`, { method: 'POST', body: { action, video_id: videoId }, });