Hello! I`ve spent a lot of time trying to change extensions parameters through Gql Api.
Everything I tried failed silently or with errors.
Then I get to success but I want to figure out what the exact reason was and to help others avoid this nightmare.
According to documentation and other topics here, there are only TWO mandatory parameters to update extension options - “extensionId” and “name”
BUT whenever I tried run query like this (two mandatory parameters to identify extension and any other one to update) it always silently failed on existing and working extension. So this didn`t work:
mutation {
updateExtension(
input: {
extensionId: 2222
name: “name2222”
maxContacts: “5”
clientMutationId: "testmutation12"
}
) {
status
message
clientMutationId
}
}
I always got an null answer no matter what parameters and their quantity I tried to change:
"status": null,
"message": "null",
"clientMutationId": null
Same time creation of test exten with full request from docs worked
And I was able to update it after.
Then, after running same request from documentation (with full set of params), on existing exten, which previously always gave me null or errors it worked.
So looks like there is more than two mandatory request fields, and if one of them empty on existing exten, it blocks updates through api.
What could be a reason for that? All other extens has been created from directory ldap Sync with MS AD. May be Sync doesn`t fill all required fields?