Salesforce · JSON Structure

Salesforce Successful Comment Edit Structure

Type: object Properties: 18 Required: 18
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

SuccessfulComment-Edit is a JSON Structure definition published by Salesforce, describing 18 properties, of which 18 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

body capabilities clientInfo createdDate feedElement id isDeleteRestricted likes likesMessage moderationFlags myLike parent relativeCreatedDate threadLevel threadParentId type url user

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "SuccessfulComment-Edit",
  "properties": {
    "body": {
      "type": "object",
      "properties": {
        "isRichText": {
          "type": "boolean"
        },
        "messageSegments": {
          "type": "array",
          "description": "",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "text",
              "type"
            ]
          }
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "isRichText",
        "messageSegments",
        "text"
      ]
    },
    "capabilities": {
      "type": "object",
      "properties": {
        "edit": {
          "type": "object",
          "properties": {
            "isEditRestricted": {
              "type": "boolean"
            },
            "isEditableByMeUrl": {
              "type": "string"
            },
            "lastEditedBy": {
              "type": "object",
              "properties": {
                "additionalLabel": {
                  "type": "['string', 'null']"
                },
                "communityNickname": {
                  "type": "string"
                },
                "companyName": {
                  "type": "string"
                },
                "displayName": {
                  "type": "string"
                },
                "firstName": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "isActive": {
                  "type": "boolean"
                },
                "isInThisCommunity": {
                  "type": "boolean"
                },
                "lastName": {
                  "type": "string"
                },
                "motif": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "largeIconUrl": {
                      "type": "string"
                    },
                    "mediumIconUrl": {
                      "type": "string"
                    },
                    "smallIconUrl": {
                      "type": "string"
                    },
                    "svgIconUrl": {
                      "type": "['string', 'null']"
                    }
                  },
                  "required": [
                    "color",
                    "largeIconUrl",
                    "mediumIconUrl",
                    "smallIconUrl",
                    "svgIconUrl"
                  ]
                },
                "mySubscription": {
                  "type": "['string', 'null']"
                },
                "name": {
                  "type": "string"
                },
                "outOfOffice": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                },
                "photo": {
                  "type": "object",
                  "properties": {
                    "fullEmailPhotoUrl": {
                      "type": "string"
                    },
                    "largePhotoUrl": {
                      "type": "string"
                    },
                    "mediumPhotoUrl": {
                      "type": "string"
                    },
                    "photoVersionId": {
                      "type": "string"
                    },
                    "smallPhotoUrl": {
                      "type": "string"
                    },
                    "standardEmailPhotoUrl": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "fullEmailPhotoUrl",
                    "largePhotoUrl",
                    "mediumPhotoUrl",
                    "photoVersionId",
                    "smallPhotoUrl",
                    "standardEmailPhotoUrl",
                    "url"
                  ]
                },
                "reputation": {
                  "type": "['string', 'null']"
                },
                "title": {
                  "type": "['string', 'null']"
                },
                "type": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "userType": {
                  "type": "string"
                }
              },
              "required": [
                "additionalLabel",
                "communityNickname",
                "companyName",
                "displayName",
                "firstName",
                "id",
                "isActive",
                "isInThisCommunity",
                "lastName",
                "motif",
                "mySubscription",
                "name",
                "outOfOffice",
                "photo",
                "reputation",
                "title",
                "type",
                "url",
                "userType"
              ]
            },
            "lastEditedDate": {
              "type": "string"
            },
            "latestRevision": {
              "type": "integer"
            },
            "relativeLastEditedDate": {
              "type": "string"
            }
          },
          "required": [
            "isEditRestricted",
            "isEditableByMeUrl",
            "lastEditedBy",
            "lastEditedDate",
            "latestRevision",
            "relativeLastEditedDate"
          ]
        },
        "status": {
          "type": "object",
          "properties": {
            "feedEntityStatus": {
              "type": "string"
            },
            "isApprovableByMe": {
              "type": "boolean"
            }
          },
          "required": [
            "feedEntityStatus",
            "isApprovableByMe"
          ]
        },
        "upDownVote": {
          "type": "object",
          "properties": {
            "downVoteCount": {
              "type": "integer"
            },
            "myVote": {
              "type": "string"
            },
            "upVoteCount": {
              "type": "integer"
            }
          },
          "required": [
            "downVoteCount",
            "myVote",
            "upVoteCount"
          ]
        },
        "verified": {
          "type": "object",
          "properties": {
            "isVerifiableByMe": {
              "type": "boolean"
            },
            "isVerified": {
              "type": "boolean"
            },
            "isVerifiedByAnonymized": {
              "type": "['string', 'null']"
            },
            "lastVerifiedByUser": {
              "type": "['string', 'null']"
            },
            "lastVerifiedDate": {
              "type": "['string', 'null']"
            }
          },
          "required": [
            "isVerifiableByMe",
            "isVerified",
            "isVerifiedByAnonymized",
            "lastVerifiedByUser",
            "lastVerifiedDate"
          ]
        }
      },
      "required": [
        "edit",
        "status",
        "upDownVote",
        "verified"
      ]
    },
    "clientInfo": {
      "type": "['string', 'null']"
    },
    "createdDate": {
      "type": "string"
    },
    "feedElement": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "url"
      ]
    },
    "id": {
      "type": "string"
    },
    "isDeleteRestricted": {
      "type": "boolean"
    },
    "likes": {
      "type": "object",
      "properties": {
        "currentPageToken": {
          "type": "['string', 'null']"
        },
        "currentPageUrl": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string"
          }
        },
        "nextPageToken": {
          "type": "['string', 'null']"
        },
        "nextPageUrl": {
          "type": "['string', 'null']"
        },
        "previousPageToken": {
          "type": "['string', 'null']"
        },
        "previousPageUrl": {
          "type": "['string', 'null']"
        },
        "total": {
          "type": "integer"
        }
      },
      "required": [
        "currentPageToken",
        "currentPageUrl",
        "items",
        "nextPageToken",
        "nextPageUrl",
        "previousPageToken",
        "previousPageUrl",
        "total"
      ]
    },
    "likesMessage": {
      "type": "['string', 'null']"
    },
    "moderationFlags": {
      "type": "['string', 'null']"
    },
    "myLike": {
      "type": "['string', 'null']"
    },
    "parent": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "url"
      ]
    },
    "relativeCreatedDate": {
      "type": "string"
    },
    "threadLevel": {
      "type": "integer"
    },
    "threadParentId": {
      "type": "['string', 'null']"
    },
    "type": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "user": {
      "type": "object",
      "properties": {
        "additionalLabel": {
          "type": "['string', 'null']"
        },
        "communityNickname": {
          "type": "string"
        },
        "companyName": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "isActive": {
          "type": "boolean"
        },
        "isInThisCommunity": {
          "type": "boolean"
        },
        "lastName": {
          "type": "string"
        },
        "motif": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string"
            },
            "largeIconUrl": {
              "type": "string"
            },
            "mediumIconUrl": {
              "type": "string"
            },
            "smallIconUrl": {
              "type": "string"
            },
            "svgIconUrl": {
              "type": "['string', 'null']"
            }
          },
          "required": [
            "color",
            "largeIconUrl",
            "mediumIconUrl",
            "smallIconUrl",
            "svgIconUrl"
          ]
        },
        "mySubscription": {
          "type": "['string', 'null']"
        },
        "name": {
          "type": "string"
        },
        "outOfOffice": {
          "type": "object",
          "properties": {
            "message": {
              "type": "string"
            }
          },
          "required": [
            "message"
          ]
        },
        "photo": {
          "type": "object",
          "properties": {
            "fullEmailPhotoUrl": {
              "type": "string"
            },
            "largePhotoUrl": {
              "type": "string"
            },
            "mediumPhotoUrl": {
              "type": "string"
            },
            "photoVersionId": {
              "type": "string"
            },
            "smallPhotoUrl": {
              "type": "string"
            },
            "standardEmailPhotoUrl": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "fullEmailPhotoUrl",
            "largePhotoUrl",
            "mediumPhotoUrl",
            "photoVersionId",
            "smallPhotoUrl",
            "standardEmailPhotoUrl",
            "url"
          ]
        },
        "reputation": {
          "type": "['string', 'null']"
        },
        "title": {
          "type": "['string', 'null']"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "userType": {
          "type": "string"
        }
      },
      "required": [
        "additionalLabel",
        "communityNickname",
        "companyName",
        "displayName",
        "firstName",
        "id",
        "isActive",
        "isInThisCommunity",
        "lastName",
        "motif",
        "mySubscription",
        "name",
        "outOfOffice",
        "photo",
        "reputation",
        "title",
        "type",
        "url",
        "userType"
      ]
    }
  },
  "required": [
    "body",
    "capabilities",
    "clientInfo",
    "createdDate",
    "feedElement",
    "id",
    "isDeleteRestricted",
    "likes",
    "likesMessage",
    "moderationFlags",
    "myLike",
    "parent",
    "relativeCreatedDate",
    "threadLevel",
    "threadParentId",
    "type",
    "url",
    "user"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}