MarkForPublishServicesMarkPages Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<PageCommandReturnInformation> MarkPages( MarkPageInput data, string pubTarget )
The instructions on Page's publish marking
{ "pageIds": ["x89"], "markForPublish": [{ "pubTarget": { "id": "PublishingTargets/1", "name": "Live" }, "version": "1", "marked": true, "isCurrent": false }, { "pubTarget": { "id": "PublishingTargets/33", "name": "Staging" }, "version": "1", "marked": true, "isCurrent": false }], "unmarkForPublish": [], "recursive": false }
The information of affected Page(s) after mark for publishing is done.
{ "code": 0, "error": null, "message": { "contentChanged": false, "pageAction": "markforpublish", "pageProperties": { "name": "DynamicExecutes", "allowedCategoryRoots": [], "ancestors": ["x1", "x2"], "assignedGroup": null, "assignedUser": { "name": "Turtle Master", "email": "", "userId": "INGENIUX\\awang" }, "canClaimPage": false, "canTranslate": false, "checkedOut": true, "error": null, "icon": 1, "isAssignedToOtherUser": false, "isEditable": true, "isInWorkflow": false, "justRecycled": false, "languageRootId": "", "lingualMaps": { "clones": [], "master": null }, "locale": "", "localeInherited": true, "markedForPublish": true, "markedForPublishAny": false, "markedForPublishPropagated": false, "nextPageId": null, "nextPageIndex": 0, "noDnd": false, "numChildPages": 6, "pageId": "x89", "parentId": null, "pendingMasterVersion": 0, "referenceProps": { "created": "20140107T21:57:04", "createdBy": "INGENIUX\\awang", "endDate": "00010101T00:00:00", "lastModified": "20140122T19:31:54", "lastModifiedBy": "User\/INGENIUX___awang", "publishAs": "", "startDate": "00010101T00:00:00" }, "remoteServer": "", "schemaFriendlyName": "Folder", "schemaName": "Folder", "schemaOnLatestVersion": true, "securityLevel": 2, "userCanCopyPage": true, "workflow": null }, "pages": [{ "id": "x89", "props": { "name": "DynamicExecutes", "allowedCategoryRoots": [], "ancestors": ["x1", "x2"], "assignedGroup": null, "assignedUser": { "name": "Turtle Master", "email": "", "userId": "INGENIUX\\awang" }, "canClaimPage": false, "canTranslate": false, "checkedOut": true, "error": null, "icon": 1, "isAssignedToOtherUser": false, "isEditable": true, "isInWorkflow": false, "justRecycled": false, "languageRootId": "", "lingualMaps": { "clones": [], "master": null }, "locale": "", "localeInherited": true, "markedForPublish": true, "markedForPublishAny": false, "markedForPublishPropagated": false, "nextPageId": null, "nextPageIndex": 0, "noDnd": false, "numChildPages": 6, "pageId": "x89", "parentId": null, "pendingMasterVersion": 0, "referenceProps": { "created": "20140107T21:57:04", "createdBy": "INGENIUX\\awang", "endDate": "00010101T00:00:00", "lastModified": "20140122T19:31:54", "lastModifiedBy": "User\/INGENIUX___awang", "publishAs": "", "startDate": "00010101T00:00:00" }, "remoteServer": "", "schemaFriendlyName": null, "schemaName": "Folder", "schemaOnLatestVersion": false, "securityLevel": 2, "userCanCopyPage": true, "workflow": null } }], "queryString": { "assignTargetId": null, "assignToGroup": null, "comment": null, "includeChildren": false, "newPageName": null, "pageAction": null, "pageId": null, "pageIds": null, "transitionId": null }, "returnMessage": null } }
If we are marking on multiple pages, we can only mark/unmark each page on its current version. Otherwise, we can mark page on any of its available previous versions.