You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-central/core/howto-manage-device-templates-with-rest-api.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -980,11 +980,11 @@ The response to this request looks like the following example:
980
980
You can use ODATA filters to filter the results returned by the list device templates API.
981
981
982
982
> [!NOTE]
983
-
> Currently, ODATA support is only available for `api-version=1.1-preview`
983
+
> Currently, ODATA support is only available for `api-version=1.1-preview`.
984
984
985
985
### $top
986
986
987
-
Use the **$top** filter to set the result size, the maximum returned result size is 100, the default size is 25.
987
+
Use the **$top** filter to set the result size. The maximum returned result size is 100, and the default size is 25.
988
988
989
989
Use the following request to retrieve the top 10 device templates from your application:
990
990
@@ -1170,7 +1170,7 @@ The response to this request looks like the following example:
1170
1170
1171
1171
### $orderby
1172
1172
1173
-
Use **$orderby** to sort the results. Currently, **$orderby** only lets you sort on **displayName**. By default, **$orderby** sorts in ascending order, use**desc** to sort in descending order, for example:
1173
+
Use **$orderby** to sort the results. Currently, **$orderby** only lets you sort on **displayName**. By default, **$orderby** sorts in ascending order. Use**desc** to sort in descending order, for example:
1174
1174
1175
1175
```
1176
1176
$orderby=displayName
@@ -1258,9 +1258,9 @@ The response to this request looks like the following example:
1258
1258
}
1259
1259
```
1260
1260
1261
-
You can also combine two or more filters
1261
+
You can also combine two or more filters.
1262
1262
1263
-
The following example shows how to retrieve top 2 device templates where the display name contains the string `thermostat`
1263
+
The following example shows how to retrieve the top 2 device templates where the display name contains the string `thermostat`.
1264
1264
1265
1265
```http
1266
1266
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.1-preview&$filter=contains(displayName, 'thermostat')&$top=2
0 commit comments