Use case 20: Update Extension recording mode
Follow this example to update the recording mode of an Extension in a Data Source to "Do Not Record".
Prerequisites
-
The Data Source that contains the extension information is created and you have obtained its ID.
-
Assume that the Data Source ID is 101.
-
Assume that you need to update extension number 1234567.
Steps
-
Get the Extension that you want to update using the GET method on API /api/em/v2/datasources/101/extensions?extensionValue=1234567.
-
Use the PUT method on /api/em/v2/datasources/101/extension.
Sample Body:
Copy{ "extensionValue": "1234567", "recordingMode": "0" }