11-07-2016 02:40 AM
Hello,
I have an existing COS on my Unity Connection server. I want to copy it using the REST API (CUPI).
The first step is the GET request on the existing component. The result is :
- {
- "URI": "/vmrest/coses/7d2ff3a8-aaf7-4af3-82e8-796791955389",
- "ObjectId": "7d2ff3a8-aaf7-4af3-82e8-796791955389",
- "AccessFaxMail": "false",
- "AccessTts": "false",
- "CallHoldAvailable": "false",
- "CallScreenAvailable": "false",
- "CanRecordName": "true",
- "FaxRestrictionObjectId": "d4926d5e-00ca-46bc-9e93-a33054492336",
- "ListInDirectoryStatus": "true",
- "LocationObjectId": "2029f8a5-9756-47c2-acde-1f23d6b215e5",
- "LocationURI": "/vmrest/locations/connectionlocations/2029f8a5-9756-47c2-acde-1f23d6b215e5",
- "MaxGreetingLength": "90",
- "MaxMsgLength": "300",
- "MaxNameLength": "30",
- "MaxPrivateDlists": "25",
- "MovetoDeleteFolder": "true",
- "OutcallRestrictionObjectId": "a02176cc-278f-4369-ac86-7e896c92e2d9",
- "PersonalAdministrator": "true",
- "DisplayName": "initialCOS",
- "XferRestrictionObjectId": "4e15efbe-10eb-44a0-a316-89c6e7d106a5",
- "Undeletable": "false",
- "WarnIntervalMsgEnd": "0",
- "CanSendToPublicDl": "true",
- "EnableEnhancedSecurity": "false",
- "AccessVmi": "false",
- "AccessLiveReply": "false",
- "UaAlternateExtensionAccess": "0",
- "AccessCallRoutingRules": "false",
- "WarnMinMsgLength": "0",
- "SendBroadcastMessage": "false",
- "UpdateBroadcastMessage": "false",
- "AccessVui": "false",
- "ImapCanFetchMessageBody": "true",
- "ImapCanFetchPrivateMessageBody": "true",
- "MaxMembersPVL": "99",
- "AccessIMAP": "false",
- "ReadOnly": "false",
- "AccessAdvancedUserFeatures": "false",
- "AccessAdvancedUser": "false",
- "AccessUnifiedClient": "false",
- "RequireSecureMessages": "4",
- "AccessOutsideLiveReply": "false",
- "AccessSTT": "true",
- "EnableSTTSecureMessage": "0",
- "MessagePlaybackRestriction": "0",
- "SttType": "1",
- "PlaybackMessageAndGreetings": "false",
- "OutsideCallers": "false"
- }
In a second step, I create a PUT request with content the result of the previous request without the ObjectID, URI and a different DisplayName:
- {
- "AccessFaxMail": "false",
- "AccessTts": "false",
- "CallHoldAvailable": "false",
- "CallScreenAvailable": "false",
- "CanRecordName": "true",
- "FaxRestrictionObjectId": "d4926d5e-00ca-46bc-9e93-a33054492336",
- "ListInDirectoryStatus": "true",
- "LocationObjectId": "2029f8a5-9756-47c2-acde-1f23d6b215e5",
- "LocationURI": "/vmrest/locations/connectionlocations/2029f8a5-9756-47c2-acde-1f23d6b215e5",
- "MaxGreetingLength": "90",
- "MaxMsgLength": "300",
- "MaxNameLength": "30",
- "MaxPrivateDlists": "25",
- "MovetoDeleteFolder": "true",
- "OutcallRestrictionObjectId": "a02176cc-278f-4369-ac86-7e896c92e2d9",
- "PersonalAdministrator": "true",
- "DisplayName": "duplicateCOS",
- "XferRestrictionObjectId": "4e15efbe-10eb-44a0-a316-89c6e7d106a5",
- "Undeletable": "false",
- "WarnIntervalMsgEnd": "0",
- "CanSendToPublicDl": "true",
- "EnableEnhancedSecurity": "false",
- "AccessVmi": "false",
- "AccessLiveReply": "false",
- "UaAlternateExtensionAccess": "0",
- "AccessCallRoutingRules": "false",
- "WarnMinMsgLength": "0",
- "SendBroadcastMessage": "false",
- "UpdateBroadcastMessage": "false",
- "AccessVui": "false",
- "ImapCanFetchMessageBody": "true",
- "ImapCanFetchPrivateMessageBody": "true",
- "MaxMembersPVL": "99",
- "AccessIMAP": "false",
- "ReadOnly": "false",
- "AccessAdvancedUserFeatures": "false",
- "AccessAdvancedUser": "false",
- "AccessUnifiedClient": "false",
- "RequireSecureMessages": "4",
- "AccessOutsideLiveReply": "false",
- "AccessSTT": "true",
- "EnableSTTSecureMessage": "0",
- "MessagePlaybackRestriction": "0",
- "SttType": "1",
- "PlaybackMessageAndGreetings": "false",
- "OutsideCallers": "false"
- }
The result of this request is:
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ErrorDetails>
- <errors>
- <code>NOT_FOUND</code>
- <message>No license found for Standard SpeechView Transcription Service</message>
- </errors>
- </ErrorDetails>
Why do I have this error despite it is a copy of an existing COS?
Thanks,
Fabien
11-23-2016 12:43 AM
Does anyone know why I have this error? Is this a bug in Unity Connection or an invalid use of the API?
Thanks,
Fabien
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide