Cannot query field fetchAllExtensions on type Query

Hi, I have this code in python and I would like to know if anyone has any idea why I get this error.

def get_all_extensions() -> list:
    urlUpdate = os.environ.get('URL_GET_PLANTA')
    bodyGraph = '''
    {
        fetchAllExtensions {
                    status
                    totalCount
                    extension {
                        id
                        extensionId
                    user {
                        name
                        extPassword
                        outboundCid
                }
            }
        }
    }
    '''
    hed = {'Authorization': 'Bearer ' + obtener_token()}
    response = requests.post(url=urlUpdate, json={"query": bodyGraph}, headers=hed)
    data = response.json()
    return data['data']['fetchAllExtensions']['extension']

{
“errors”: [
{
“message”: “Cannot query field "fetchAllExtensions" on type "Query".”,
“status”: false
}
]
}

FreePBX Documentation : FreePBX GraphQL Provisioning Tutorial (sangoma.com)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.