Skip to content

Make Console upsert on repeat device POST instead of returning 409 #675

Open

Description

@amarnath-ac

Description:
RPS posts the same device to the device API more than once - once from the CIRA configuration flow, and again at the end of activation to
record the provisioning status. MPS handles this as an upsert: it returns 201 for a new GUID and 200 after merging into an existing one. Console returns 409 instead.

The CIRA flow does not handle the error, so the device never gets registered. The activation status write logs it and carries on.

Expected:
Console should do what MPS does. A POST for a GUID it already has should merge the fields the caller sent, keep the ones it did not send, and return 200.

Acceptance criteria:

  • Second POST for the same GUID returns 200
  • Fields not sent are left alone
  • OpenAPI shows the 200 response
  • CIRA configuration from RPS completes against Console

Metadata

Metadata

Assignees

Labels

v3-readinessTracks remaining work required before the v3 release

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions