Skip to content

Docs

request_post_removal

Ask a person to delete a published post from its platform. Nothing is deleted until a person confirms it in Updates; asking again returns the open request (`alreadyRequested`). Say why in `note`.

Ask a person to delete a published post from its platform. Nothing is deleted until a person confirms it in Updates; asking again returns the open request (alreadyRequested). Say why in note.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "postId": {
      "format": "uuid",
      "type": "string"
    },
    "note": {
      "maxLength": 1000,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "postId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "removal": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "postId": {
          "format": "uuid",
          "type": "string"
        },
        "status": {
          "enum": [
            "requested",
            "confirmed",
            "removed",
            "failed",
            "manual",
            "dismissed"
          ],
          "type": "string"
        },
        "method": {
          "anyOf": [
            {
              "enum": [
                "api",
                "manual"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "requestedBy": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "enum": [
                    "member",
                    "guest",
                    "agent",
                    "system"
                  ],
                  "type": "string"
                },
                "accountId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "agentClientId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "guestId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "accountId",
                "agentClientId",
                "guestId",
                "name"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "requestedAt": {
          "format": "date-time",
          "type": "string"
        },
        "decidedBy": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "enum": [
                    "member",
                    "guest",
                    "agent",
                    "system"
                  ],
                  "type": "string"
                },
                "accountId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "agentClientId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "guestId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "accountId",
                "agentClientId",
                "guestId",
                "name"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "decidedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "outcome": {
          "anyOf": [
            {
              "enum": [
                "deleted",
                "already_gone"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "finishedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "postId",
        "status",
        "method",
        "note",
        "requestedBy",
        "requestedAt",
        "decidedBy",
        "decidedAt",
        "outcome",
        "error",
        "finishedAt"
      ],
      "type": "object"
    },
    "alreadyRequested": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "removal",
    "alreadyRequested",
    "url"
  ],
  "type": "object"
}

Errors

[
  "not_published",
  "already_removed"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Ask a person to delete a live post"
}