Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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}
```
Expand All @@ -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"}%
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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' \
Expand Down Expand Up @@ -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' \
Expand Down
Loading