McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 111

↗ View in doc context
page
111
source
unity-connection/rest-api/cupi/cupi.md
chunk_id
unity-connection::rest-api::cupi::cupi::77

Create a New MWI The mandatory fields for creation of a MWI are DisplayName, MediaSwitchObjectId, and MWIExtension. URI for getting MediaswitchObjectId: GET https://<connection-server>/vmrest/phonesystems POST https://<connection-server>/vmrest/users/<user-objectid>/mwis <Mwi> <DisplayName>MWI-1</DisplayName> <MwiExtension>9997</MwiExtension> <MediaSwitchObjectId>ec1e2636-fc14-44fc-8cda-d6c1a3d61150</MediaSwitchObjectId> </Mwi> The following is the response from the above POST request and the actual response will depend upon the information given by you: Response Code: 201 /vmrest/users/f82b301d-1ec8-44c6-a3ee-0012269439bf/mwis/a9159ac7-3857-480c-917d-0c599a32fc03 JSON Example: To create MWI POST https://<connection-server>/vmrest/users/<user-objectid>/mwis Accept: application/json Content-type: application/json Connection: keep-alive Request Body:- { "DisplayName":"MWI-1", "MwiExtension":9997", "MediaSwitchObjectId":"ec1e2636-fc14-44fc-8cda-d6c1a3d61150" } Response Code: 201 /vmrest/users/f82b301d-1ec8-44c6-a3ee-0012269439bf/mwis/a9159ac7-3857-480c-917d-0c599a32fc03 Update a MWI PUT https://<connection-server>/vmrest/users/<user-objectid>/mwis/<mwi-objectid> <Mwi> <Active>true</Active> <DisplayName>MWI</DisplayName> <MwiExtension>9997</MwiExtension> <MwiOn>false</MwiOn> <UsePrimaryExtension>true</UsePrimaryExtension> </Mwi> The following is the response from the above PUT request and the actual response will depend upon the information given by you: Response Code: 204 Cisco Unity Connection Provisioning Interface (CUPI) API 79 Cisco Unity Connection Provisioning Interface (CUPI) API -- User Message Waiting Indicators Create a New MWI