Rule of thumb:
- Make sure all Required are sent
- Send any information you think you might want to use
In my experience, most calls always have strange entries when you don't supply them. I usually start with the required, check the response and then add on the ones I just might want to have in the future. As for your examples, there are certain dependencies as well which may not show as required, but will be if another part of programming requires the relationship.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.comhttps://www.Avtex.comhttps://RobertWC.Blogspot.com------------------------------
Original Message:
Sent: 02-22-2021 09:15
From: Rene Perez Solis
Subject: Platform API Client SDK - RoutingAPI
Hello,
I noticed when using the javascript SDK PUT /api/v2/routing/queues/{queueId} (RoutingApi
Mypurecloud |
remove preview |
|
RoutingApi |
AlertingApi AnalyticsApi ArchitectApi AuditApi AuthorizationApi BillingApi ChatApi CoachingApi ContentManagementApi ConversationsApi DataExtensionsApi ExternalContactsApi FaxApi FlowsApi GeneralDataProtectionRegulationApi GeolocationApi GreetingsApi GroupsApi IdentityProviderApi IntegrationsApi JourneyApi KnowledgeApi LanguageUnderstandingApi LanguagesApi LicenseApi LocationsApi MobileDevicesApi NotificationsApi OAuthApi ObjectsApi OrganizationApi OrganizationAuthorizationApi OutboundApi PresenceApi QualityApi RecordingApi ReleaseNotes ResponseManagementApi RoutingApi SCIMApi ScriptsApi SearchApi SpeechTextAnalyticsApi StationsApi SuggestApi TelephonyApi TelephonyProvidersEdgeApi TextbotsApi TokensApi UploadsApi UsageApi UserRecordingsApi UsersApi UtilitiesApi VoicemailApi WebChatApi WidgetsApi WorkforceManagementApi |
View this on Mypurecloud > |
|
|
) that when the body does not contain all attributes that some attributes get set Default.
Example when the mediaSettings is not set in the body of request, the values gets reset to default values.
Is this normal behaviour?
Here an example of what I noticed:
the body contained : "acwSettings": { "wrapupPrompt": String, "timeoutMs": Number, },
when chaning the Queues I noticed that the Service level was resetted to default values.
My questoin is do I alsways have to sent the full body with all options to avoid this or is this a kind of bug?
kind regards
#PlatformAdministration
------------------------------
Rene Perez Solis
Genesys IT Consultant
------------------------------