Skip to content

Saving CMS Page Title from REST web API makes content empty #24704

Closed
@adarshkhatri

Description

@adarshkhatri

I am not sure if this is a bug or feature. I am trying to update the CMS Page title from POSTMAN. It updates title but also makes content and other fields empty.

Preconditions (*)

  1. At least 1 CMS page
  2. Web API auth key

Steps to reproduce (*)

  1. Go to the postman and use this URL and body content with PUT method
    URL: http://www.example.com/rest/all/V1/cmsPage/ID (replace ID with your id (integer)
    Body:
{"page":
	{
		"title": "My Title"
	}
}

Expected result (*)

  1. Update TITLE and keep all other fields same/unchanged
  2. OR only update the field provided.

Actual result (*)

  1. Updates title and makes all other fields (not provided in the body) null.

How do I update title only or content only? I want to update one field only (title at this stage).

Metadata

Metadata

Labels

Component: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Component: CmsEvent: mm20inFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions