Skip to content

Commit cdd7164

Browse files
committed
update rest api jobs and version
1 parent ef73687 commit cdd7164

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ The response to this request looks like the following example:
987987
You can use ODATA filters to filter the results returned by the list device templates API.
988988

989989
> [!NOTE]
990-
> Currently, ODATA support is only available for `api-version=1.2-preview`.
990+
> Currently, ODATA support is only available for `api-version=2022-06-30-preview`.
991991
992992
### $top
993993

@@ -996,7 +996,7 @@ Use the **$top** filter to set the result size. The maximum returned result size
996996
Use the following request to retrieve the top 10 device templates from your application:
997997

998998
```http
999-
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2-preview&$top=10
999+
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30-preview&$top=10
10001000
```
10011001

10021002
The response to this request looks like the following example:
@@ -1050,7 +1050,7 @@ The response to this request looks like the following example:
10501050
},
10511051
...
10521052
],
1053-
"nextLink": "https://custom-12qmyn6sm0x.azureiotcentral.com/api/deviceTemplates?api-version=1.2-preview&%24top=1&%24skiptoken=%7B%22token%22%3A%22%2BRID%3A%7EJWYqAKZQKp20qCoAAAAACA%3D%3D%23RT%3A1%23TRC%3A1%23ISV%3A2%23IEO%3A65551%23QCF%3A4%22%2C%22range%22%3A%7B%22min%22%3A%2205C1DFFFFFFFFC%22%2C%22max%22%3A%22FF%22%7D%7D"
1053+
"nextLink": "https://custom-12qmyn6sm0x.azureiotcentral.com/api/deviceTemplates?api-version=2022-06-30-preview&%24top=1&%24skiptoken=%7B%22token%22%3A%22%2BRID%3A%7EJWYqAKZQKp20qCoAAAAACA%3D%3D%23RT%3A1%23TRC%3A1%23ISV%3A2%23IEO%3A65551%23QCF%3A4%22%2C%22range%22%3A%7B%22min%22%3A%2205C1DFFFFFFFFC%22%2C%22max%22%3A%22FF%22%7D%7D"
10541054
}
10551055
```
10561056

@@ -1097,7 +1097,7 @@ $filter=contains(displayName, 'template1) eq false
10971097
The following example shows how to retrieve all the device templates where the display name contains the string `thermostat`:
10981098

10991099
```http
1100-
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2-preview&$filter=contains(displayName, 'thermostat')
1100+
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30-preview&$filter=contains(displayName, 'thermostat')
11011101
```
11021102

11031103
The response to this request looks like the following example:
@@ -1187,7 +1187,7 @@ $orderby=displayName desc
11871187
The following example shows how to retrieve all the device templates where the result is sorted by `displayName` :
11881188

11891189
```http
1190-
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2-preview&$orderby=displayName
1190+
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30-preview&$orderby=displayName
11911191
```
11921192

11931193
The response to this request looks like the following example:
@@ -1270,7 +1270,7 @@ You can also combine two or more filters.
12701270
The following example shows how to retrieve the top 2 device templates where the display name contains the string `thermostat`.
12711271

12721272
```http
1273-
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2-preview&$filter=contains(displayName, 'thermostat')&$top=2
1273+
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30-preview&$filter=contains(displayName, 'thermostat')&$top=2
12741274
```
12751275

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ The response to this request looks like the following example:
202202
You can use ODATA filters to filter the results returned by the list devices API.
203203

204204
> [!NOTE]
205-
> Currently, ODATA support is only available for `api-version=1.2-preview`
205+
> Currently, ODATA support is only available for `api-version=2022-06-30-preview`
206206
207207
### $top
208208

@@ -211,7 +211,7 @@ Use the **$top** to set the result size, the maximum returned result size is 100
211211
Use the following request to retrieve a top 10 device from your application:
212212

213213
```http
214-
GET https://{subdomain}.{baseDomain}/api/devices?api-version=1.2-preview&$top=10
214+
GET https://{subdomain}.{baseDomain}/api/devices?api-version=2022-06-30-preview&$top=10
215215
```
216216

217217
The response to this request looks like the following example:
@@ -239,7 +239,7 @@ The response to this request looks like the following example:
239239
},
240240
...
241241
],
242-
"nextLink": "https://custom-12qmyn6sm0x.azureiotcentral.com/api/devices?api-version=1.2-preview&%24top=1&%24skiptoken=%257B%2522token%2522%253A%2522%252BRID%253A%7EJWYqAOis7THQbBQAAAAAAg%253D%253D%2523RT%253A1%2523TRC%253A1%2523ISV%253A2%2523IEO%253A65551%2523QCF%253A4%2522%252C%2522range%2522%253A%257B%2522min%2522%253A%2522%2522%252C%2522max%2522%253A%252205C1D7F7591D44%2522%257D%257D"
242+
"nextLink": "https://custom-12qmyn6sm0x.azureiotcentral.com/api/devices?api-version=2022-06-30-preview&%24top=1&%24skiptoken=%257B%2522token%2522%253A%2522%252BRID%253A%7EJWYqAOis7THQbBQAAAAAAg%253D%253D%2523RT%253A1%2523TRC%253A1%2523ISV%253A2%2523IEO%253A65551%2523QCF%253A4%2522%252C%2522range%2522%253A%257B%2522min%2522%253A%2522%2522%252C%2522max%2522%253A%252205C1D7F7591D44%2522%257D%257D"
243243
}
244244
```
245245

@@ -289,7 +289,7 @@ $filter=indexof(displayName, 'device1') ge 0
289289
The following example shows how to retrieve all the devices where the display name has index the string `thermostat`:
290290

291291
```http
292-
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2-preview&$filter=index(displayName, 'thermostat')
292+
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30-preview&$filter=index(displayName, 'thermostat')
293293
```
294294

295295
The response to this request looks like the following example:
@@ -331,7 +331,7 @@ $orderby=displayName desc
331331
The following example shows how to retrieve all the device templates where the result is sorted by `displayName` :
332332

333333
```http
334-
GET https://{subdomain}.{baseDomain}/api/devices?api-version=1.2-preview&$orderby=displayName
334+
GET https://{subdomain}.{baseDomain}/api/devices?api-version=2022-06-30-preview&$orderby=displayName
335335
```
336336

337337
The response to this request looks like the following example:
@@ -366,7 +366,7 @@ You can also combine two or more filters.
366366
The following example shows how to retrieve the top 2 device where the display name contains the string `thermostat`.
367367

368368
```http
369-
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2-preview&$filter=contains(displayName, 'thermostat')&$top=2
369+
GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30-preview&$filter=contains(displayName, 'thermostat')&$top=2
370370
```
371371

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

0 commit comments

Comments
 (0)