Skip to content

[Bug]: Location Group endpoint doesn't allow for updating metadata #1905

Description

@adamkorynta

Describe the bug

The location group POST endpoint calls cwms_loc.create_loc_group which throws an error if the group already exists. The PATCH endpoint supports rename and updating assigned locations. This means neither endpoint supports editing the shared loc ref, shared loc alias id, description, or attribute metadata fields.

Expected behavior

PATCH should handle the update.

To Reproduce

  1. store a loc group with those nullable metadata fields as null
  2. try to store the same loc group now with those fields defined

Priority

Medium

Logs/Incident Identifier

No response

CURL Commands

CDA Version

2026.08.14-testa

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:mediumWe care, and will try and get to it soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions