Mutation
mutation CreatePostReport($input: CreatePostReportInput!) {
createPostReport(input: $input) {
clientMutationId
errors
post {
__typename
... on Event {
assets {
__typename
}
body
bodyHtml
bodyText
cheerCount
cheersEnabled
}
}
}
}Variables
{
"input": {
"blacklistType": "NOT_INTERESTING",
"postId": "id"
}
}Response
{
"data": {
"createPostReport": {
"clientMutationId": "string",
"errors": [
"string"
],
"post": {
"__typename": "Event",
"assets": [
{
"__typename": "Asset"
}
],
"body": "string",
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"cheersEnabled": true
}
}
}
}Mutations
createPostReport
Flag a post for the current member: mute it (unfollow), hide it (not_interesting), or report it to moderators (spam, offensive, other). Reporting notifies the space’s moderators.
Required scope: write:posts
MUTATION
createPostReport(input: CreatePostReportInput!): CreatePostReportPayloadArguments
input
required
Parameters for CreatePostReport
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
post
Mutation
mutation CreatePostReport($input: CreatePostReportInput!) {
createPostReport(input: $input) {
clientMutationId
errors
post {
__typename
... on Event {
assets {
__typename
}
body
bodyHtml
bodyText
cheerCount
cheersEnabled
}
}
}
}Variables
{
"input": {
"blacklistType": "NOT_INTERESTING",
"postId": "id"
}
}Response
{
"data": {
"createPostReport": {
"clientMutationId": "string",
"errors": [
"string"
],
"post": {
"__typename": "Event",
"assets": [
{
"__typename": "Asset"
}
],
"body": "string",
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"cheersEnabled": true
}
}
}
}