Rest/Api: Updating a user group does not work as expected

Stefan Hall shared this problem 2 days ago
Awaiting Reply

Hi,

I follow these instructions
https://developers.yellowfinbi.com/dev/api-docs/current/#operation/updateUserGroup

If I send json body {"groupName": "new group name"}, then the status is always changed from OPEN to DRAFT and - even worse - the group description is deleted.

I also don't understand why the group name is a mandatory field if you only want to change the description, for example.

From my point of view, there are a few things wrong here.

;) Stefan

Version 9.13

Replies (2)

photo
1

Hi Stefan,

Thanks for reaching out to support with your question. From our new AI assistant - With this call you would need to provide a full list of fields to maintain as opposed to modifying a single parameter.

For example -

{
  "groupName": "new group name",
  "groupDescription": "Current description",
  "groupStatus": "OPEN",
  "isSecureGroup": false
}

https://www.yellowfinbi.com/code-assist-ai

(This project is still in beta and should be treated appropriately)


This functionality may be by design, to prevent DB corruption etc. That said, I could make a request to look into making a change of this functionality via a developer task if this sounds like a good way forward, just let me know.

Thanks,
Eric

photo
1

Hi Eric,

OK, but that's not the idea behind the PATCH method. The idea is to save data and effort and update a small amount of information.

The code examples are generic and in no way represent your API. Please create a defect and pass it on to your developers. Other endpoints do not behave in the same way with PATCH.

;) Stefan

photo
photo
1

Hi Stefan,

Thanks for the additional information, I can see this functionality request for the client organization level, can you confirm whether this is the setup in this case?

Thanks,

Eric

Leave a Comment
 
Attach a file