diff --git a/doc/content/hardware/devices/adding-devices/manual/otaa/_index.md b/doc/content/hardware/devices/adding-devices/manual/otaa/_index.md index bf3cb978be..d6089cd741 100644 --- a/doc/content/hardware/devices/adding-devices/manual/otaa/_index.md +++ b/doc/content/hardware/devices/adding-devices/manual/otaa/_index.md @@ -223,7 +223,7 @@ Make a `PUT` request to the [`/api/v3/ns/applications/{end_device.ids.applicatio ```bash curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $API_KEY" \ --d @./req.json \ +-d @./ns.json \ https://thethings.example.com/api/v3/ns/applications/my-test-app/devices/test-device {"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} ``` @@ -249,7 +249,7 @@ Make a `PUT` request to the [`/api/v3/as/applications/{end_device.ids.applicatio ```bash curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $API_KEY" \ --d @./req.json \ +-d @./as.json \ https://thethings.example.com/api/v3/as/applications/my-test-app/devices/test-device {"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"}% ``` diff --git a/doc/content/integrations/application-packages/using-the-api.md b/doc/content/integrations/application-packages/using-the-api.md index 57d0179317..e632173464 100644 --- a/doc/content/integrations/application-packages/using-the-api.md +++ b/doc/content/integrations/application-packages/using-the-api.md @@ -14,7 +14,7 @@ Besides using the CLI, you can also use the [application package HTTP APIs]({{< To list the available application packages for the given device `dev1` of the application `app1`: ```bash -curl 'https://eu1.cloud.thethings.network/api/app1/devices/dev1/packages' \ +curl 'https://eu1.cloud.thethings.network/api/v3/as/applications/app1/devices/dev1/packages' \ -X 'GET' \ -H 'content-type: application/json' \ -H 'authorization: Bearer NNSXS.XXXXXXXXX' @@ -56,7 +56,7 @@ In the following examples, replace the `test-package` with any of the packages l To create a default association between the application package and the FPort `100` of an application `app1`: ```bash -curl 'https://eu1.cloud.thethings.network/applications/app1/packages/associations/100' \ +curl 'https://eu1.cloud.thethings.network/api/v3/as/applications/app1/packages/associations/100' \ -X 'PUT' \ -H 'content-type: application/json' \ -H 'authorization: Bearer NNSXS.XXXXXXXXX' \ @@ -85,7 +85,7 @@ The default association will associate the application package with all devices To create an association between the application package and the FPort `100` of a device `dev1` of an application `app1`: ```bash -curl 'https://eu1.cloud.thethings.network/applications/app1/devices/dev1/packages/associations/100' \ +curl 'https://eu1.cloud.thethings.network/api/v3/as/applications/app1/devices/dev1/packages/associations/100' \ -X 'PUT' \ -H 'content-type: application/json' \ -H 'authorization: Bearer XXXXXXXXX' \