Skip to content

Commit 1ab5968

Browse files
committed
changes after review
1 parent 5c97ad8 commit 1ab5968

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

articles/iot-central/core/howto-manage-device-templates-with-rest-api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -986,9 +986,6 @@ The response to this request looks like the following example:
986986

987987
You can use ODATA filters to filter the results returned by the list device templates API.
988988

989-
> [!NOTE]
990-
> Currently, ODATA support is only available for `api-version=2022-07-31`.
991-
992989
### $top
993990

994991
Use the **$top** filter to set the result size. The maximum returned result size is 100, and the default size is 25.

articles/iot-central/core/howto-manage-devices-with-rest-api.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ The response to this request looks like the following example:
201201

202202
You can use ODATA filters to filter the results returned by the list devices API.
203203

204-
> [!NOTE]
205-
> Currently, ODATA support is only available for `api-version=2022-07-31`
206-
207204
### $top
208205

209206
Use the **$top** to set the result size, the maximum returned result size is 100, the default size is 25.
@@ -286,10 +283,10 @@ Currently, the only supported filter function for device lists is the `contains`
286283
$filter=contains(displayName, 'device1') ge 0
287284
```
288285

289-
The following example shows how to retrieve all the devices where the display name has index the string `thermostat`:
286+
The following example shows how to retrieve all the devices where the display name contains the string `thermostat`:
290287

291288
```http
292-
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-07-31&$filter=index(displayName, 'thermostat')
289+
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-07-31&$filter=contains(displayName, 'thermostat')
293290
```
294291

295292
The response to this request looks like the following example:

0 commit comments

Comments
 (0)