# APIVersion property on API queries
> Version: _Available from runtime version 1.0._
Specifies one or more versions of the API endpoint that exposes the query. If you don't set the APIVersion property, the default value is beta.
## Applies to
 Query object
## Syntax
```al
APIVersion = 'beta', 'v1.0';
```
For a complete example, see API query type<../devenv-api-querytype>.
## Related information
devenv-properties
../devenv-query-object
APIVersion property for API pages<devenv-apiversion-page-property>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-apiversion-query-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-apiversion-query-property/
