Skip to content

Commit 3592671

Browse files
Update typos in API call paths for Managing Application Packages (TheThingsIndustries#1415)
* doc: Update API call typo * doc: Update API path typo
1 parent aab8ed2 commit 3592671

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/content/hardware/devices/adding-devices/manual/otaa/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Make a `PUT` request to the [`/api/v3/ns/applications/{end_device.ids.applicatio
223223

224224
```bash
225225
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $API_KEY" \
226-
-d @./req.json \
226+
-d @./ns.json \
227227
https://thethings.example.com/api/v3/ns/applications/my-test-app/devices/test-device
228228
{"ids":{"device_id":"test-device","application_ids":{"application_id":"my-test-app"},"dev_eui":"0000000000000011","join_eui":"1111111111111111"},"created_at":"2024-01-10T14:34:54.493279Z","updated_at":"2024-01-10T14:34:54.493279Z","lorawan_version":"MAC_V1_0_2","lorawan_phy_version":"PHY_V1_0_2_REV_B","frequency_plan_id":"EU_863_870_TTN","supports_join":true}
229229
```
@@ -249,7 +249,7 @@ Make a `PUT` request to the [`/api/v3/as/applications/{end_device.ids.applicatio
249249

250250
```bash
251251
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $API_KEY" \
252-
-d @./req.json \
252+
-d @./as.json \
253253
https://thethings.example.com/api/v3/as/applications/my-test-app/devices/test-device
254254
{"ids":{"device_id":"test-device","application_ids":{"application_id":"my-test-app"},"dev_eui":"0000000000000011","join_eui":"1111111111111111"},"created_at":"2024-01-10T14:37:56.826742Z","updated_at":"2024-01-10T14:37:56.826742Z"}%
255255
```

doc/content/integrations/application-packages/using-the-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Besides using the CLI, you can also use the [application package HTTP APIs]({{<
1414
To list the available application packages for the given device `dev1` of the application `app1`:
1515

1616
```bash
17-
curl 'https://eu1.cloud.thethings.network/api/app1/devices/dev1/packages' \
17+
curl 'https://eu1.cloud.thethings.network/api/v3/as/applications/app1/devices/dev1/packages' \
1818
-X 'GET' \
1919
-H 'content-type: application/json' \
2020
-H 'authorization: Bearer NNSXS.XXXXXXXXX'
@@ -56,7 +56,7 @@ In the following examples, replace the `test-package` with any of the packages l
5656
To create a default association between the application package and the FPort `100` of an application `app1`:
5757

5858
```bash
59-
curl 'https://eu1.cloud.thethings.network/applications/app1/packages/associations/100' \
59+
curl 'https://eu1.cloud.thethings.network/api/v3/as/applications/app1/packages/associations/100' \
6060
-X 'PUT' \
6161
-H 'content-type: application/json' \
6262
-H 'authorization: Bearer NNSXS.XXXXXXXXX' \
@@ -85,7 +85,7 @@ The default association will associate the application package with all devices
8585
To create an association between the application package and the FPort `100` of a device `dev1` of an application `app1`:
8686

8787
```bash
88-
curl 'https://eu1.cloud.thethings.network/applications/app1/devices/dev1/packages/associations/100' \
88+
curl 'https://eu1.cloud.thethings.network/api/v3/as/applications/app1/devices/dev1/packages/associations/100' \
8989
-X 'PUT' \
9090
-H 'content-type: application/json' \
9191
-H 'authorization: Bearer XXXXXXXXX' \

0 commit comments

Comments
 (0)