-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: API - Manage
-
None
-
1
-
Severity 3 - Minor
Issue Summary
When using the Manage API, the Update a component group endpoint does not update the "description" element when using PATCH or PUT.
Steps to Reproduce
- Create a Group component. Enter a description or leave it blank.
- Use the Update a component group endpoint and change the description:
{
"description": "This is a test",
"component_group": {
"components": [
"k6lwp52ptp9w",
"v2m6mnv0jqk3",
"s59gn3cc2kbd",
"f53ktf4ctzl9"
],
"name": "Group 1"
}
}
- The response returns with status 200 but the description does not change. Since nothing else has changed, the updated_at also doesn't change:
{
"id": "kdk2jsmr01wm",
"page_id": "<PAGE_ID>",
"name": "Group 1",
"description": null,
"components": [
"k6lwp52ptp9w",
"v2m6mnv0jqk3",
"s59gn3cc2kbd",
"f53ktf4ctzl9"
],
"position": 2,
"created_at": "2019-10-25T15:30:51Z",
"updated_at": "2024-07-18T21:43:06Z"
}
Expected Results
The description should change and the updated_at should reflect the new time that it was updated.
Actual Results
The description field and the updated_at field remain unchanged
Workaround
If your goal is to update the description, you can use the UI to manually update it. If you need to change the updated_at time, you can change a child component or change the name of the group component.