Skip to content

Commit

Permalink
SWI-3768 Fix Update Call BXML Bug (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel authored Oct 18, 2023
1 parent 2a276db commit 2dedf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/apiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class ApiController extends BaseController {
callId: [callId, string()],
body: [body, string()],
});
req.json(mapped.body);
req.text(mapped.body);
req.appendTemplatePath`/api/v2/accounts/${mapped.accountId}/calls/${mapped.callId}/bxml`;
req.throwOn(400, ExternalApiError, 'Something\'s not quite right... Your request is invalid. Please fix it before trying again.');
req.throwOn(401, ApiError, 'Your credentials are invalid. Please use your Bandwidth dashboard credentials to authenticate to the API.');
Expand Down

0 comments on commit 2dedf67

Please sign in to comment.