/mcp<DirectoryHandler> <ExitAction>2</ExitAction> <ExitTargetConversation>AD</ExitTargetConversation> <ExitTargetHandlerObjectId>249056ed-5954-493d-9d87- aec9cedafe25</ExitTargetHandlerObjectId> </DirectoryHandler> Response Code: 204 Setting Voice Enable to true for a Directory Handler Voice enabled directory handlers cannot use a class of service or a distribution list as per their search scope. Only entire server, a specific search space, or Inherit search space from call are allowed. Request URI PUT https://<connection-server>/vmrest/handlers/directoryhandlers/<directoryHandlerObjectId> Request Body <DirectoryHandler> <VoiceEnabled>true</VoiceEnabled> </DirectoryHandler> Response Code: 204 JSON Example To update the voice enable, do the following: Request URI PUT https://<connection-server>/vmrest/handlers/directoryhandlers/<directoryHandlerObjectId> Accept: application/json Content-Type: application/json Connection: keep-alive { "VoiceEnabled":"true" } The following is an example of the PUT request to update the search scope of directory handler to a search space: Response Code: 204 • If a request is sent to enable the voiceenabled field and set the search scope to a COS or distribution list, the search scope is set to entire server. • If the search scope of a directory handler is already a COS or a distribution list and request is sent to set the voiceenabled to true, the search scope is set to entire server. Note Cisco Unity Connection Provisioning Interface (CUPI) API 538 Cisco Unity Connection Provisioning Interface (CUPI) API--Directory Handler APIs Setting Voice Enable to true for a Directory Handler
