public function updateContentTypeGroupIdentifier($old, $new) { // load the ContentTypeGroup to be updated $contentTypeGroup = $this->getRepository()->getContentTypeService()->loadContentTypeGroupByIdentifier($old); $this->createRequest('patch', '/content/typegroups/' . $contentTypeGroup->id); $this->setHeaderWithObject('content-type', 'ContentTypeGroupInput'); $this->setHeaderWithObject('accept', 'ContentTypeGroup'); $this->makeObject('ContentTypeGroupUpdateStruct'); $this->setFieldToValue('identifier', $new); $this->sendRequest(); }