Skip to content

fix(cli): 🐛 fix nRF93M1 onboarding issue#86

Closed
noahp wants to merge 1 commit into
mainfrom
noahp/nrf93-onboard-fixup
Closed

fix(cli): 🐛 fix nRF93M1 onboarding issue#86
noahp wants to merge 1 commit into
mainfrom
noahp/nrf93-onboard-fixup

Conversation

@noahp
Copy link
Copy Markdown
Contributor

@noahp noahp commented May 11, 2026

Summary

The new nrf93_onboard.py JWT-based onboarding flow was hitting
POST /v1/devices/{deviceId} with a JSON body, but that endpoint doesn't
exist. The OnboardDevices operation is POST /v1/devices and takes a
CSV text body - same as cert-based onboarding, just with the certificate
column left empty and the JWT in the onboardingToken column:

deviceId,subType,tags,supportedFirmwareTypes,,onboardingToken

The script was also treating any 2xx as success and not polling for the async
result. POST /v1/devices returns 202 + bulkOpsRequestId, so we now poll
GET /v1/bulk-ops-requests/{id} until SUCCEEDED (or fail), same as the
old cert-based script.

Test Plan

  • updated unit test
  • manual verification

### Summary

The new `nrf93_onboard.py` JWT-based onboarding flow was hitting
`POST /v1/devices/{deviceId}` with a JSON body, but that endpoint doesn't
exist. The `OnboardDevices` operation is `POST /v1/devices` and takes a
**CSV text body** - same as cert-based onboarding, just with the certificate
column left empty and the JWT in the `onboardingToken` column:

```
deviceId,subType,tags,supportedFirmwareTypes,,onboardingToken
```

The script was also treating any 2xx as success and not polling for the async
result. `POST /v1/devices` returns 202 + `bulkOpsRequestId`, so we now poll
`GET /v1/bulk-ops-requests/{id}` until `SUCCEEDED` (or fail), same as the
old cert-based script.

### Test Plan

- updated unit test
- manual verification
@noahp noahp closed this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant