addedOutput schema / properties / cmsPreview
Added value: +{
+ "description": "The post's preview draft in the website CMS: removed (Mark deleted it), or left_in_cms with its previewUrl and why (cannot_delete: Mark's API key may not delete it; edited: changed in the CMS; linked: a page that was in the CMS before Mark used it; live: a live page; unreachable: the CMS did not answer). Absent when the post had no preview.",
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "outcome": {
+ "const": "removed",
+ "type": "string"
+ }
+ },
+ "required": [
+ "outcome"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "outcome": {
+ "const": "left_in_cms",
+ "type": "string"
+ },
+ "previewUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reason": {
+ "enum": [
+ "cannot_delete",
+ "edited",
+ "linked",
+ "live",
+ "unreachable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "outcome",
+ "previewUrl",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+}