We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b8536 commit c8c6e98Copy full SHA for c8c6e98
api.js
@@ -70,7 +70,9 @@ export function getAllPieces(slug) {
70
export function mutateAssignPiece(slug) {
71
return async (piecePlanId) => {
72
const endpoint = `courses/${slug}/assign_piece_plan/`;
73
- const json = await makeRequest(endpoint, 'POST', { piece_id: piecePlanId });
+ const json = await makeRequest(endpoint, 'POST', {
74
+ piece_plan_id: piecePlanId,
75
+ });
76
return json;
77
};
78
}
0 commit comments