SchemaDesignerServicesSyncPagesToSchema Method
|
Synchronizes specified Pages to the latest version of their Schema. This operations will update Pages based on the Schema, but
adding and removing fields to match the new Schema version. It will not touch any element or attribute values of the Pages.
Namespace: IngeniuxCMServiceAssembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntaxpublic XHRServiceResponseGeneric<SchemaPagesSyncResult> SyncPagesToSchema(
SchemaSyncRequest data
)
Public Function SyncPagesToSchema (
data As SchemaSyncRequest
) As XHRServiceResponseGeneric(Of SchemaPagesSyncResult)
public:
virtual XHRServiceResponseGeneric<SchemaPagesSyncResult^>^ SyncPagesToSchema(
SchemaSyncRequest^ data
) sealed
abstract SyncPagesToSchema :
data : SchemaSyncRequest -> XHRServiceResponseGeneric<SchemaPagesSyncResult>
override SyncPagesToSchema :
data : SchemaSyncRequest -> XHRServiceResponseGeneric<SchemaPagesSyncResult> Parameters
- data SchemaSyncRequest
Object containing Ids of the Pages to be synchronized
Example
Sample JSON input
{
"data": {
"SchemaId": "Schemas/x97",
"PageIDs": ["x9", "x10"]
}
}
Return Value
XHRServiceResponseGenericSchemaPagesSyncResultResult of Synchronization
Example
Sample JSON return
{
"code": 0,
"error": null,
"message": {
"ErrorPages": [],
"SchemaRootName": "Details",
"SchemaId": "Schemas/x97",
"SuccessPageIDs": ["x10", "x9"]
}
}
RemarksIf Schema with given Id doesn't exist, returns error status
During synchronization, site is locked to prevent any content changes. Site will be unlocked after synchronization is one.
See Also