R/auto_com_atproto_moderation.R

Defines functions com_atproto_moderation_create_report

#' com_atproto_moderation_create_report
#' Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.
#' @noRd
com_atproto_moderation_create_report <- function(
  reasonType,
  subject,
  reason = NULL,
  modTool = NULL,
  .token = NULL,
  .return = c("json", "resp")
) {
  make_request(
    name = "bsky.social/xrpc/com.atproto.moderation.createReport",
    params = as.list(match.call())[-1] |>
      purrr::imap(
        ~ {
          eval(.x, envir = parent.frame())
        }
      ),
    req_method = "POST"
  )
}

Try the atrrr package in your browser

Any scripts or data that you put into this service are public.

atrrr documentation built on June 7, 2026, 1:06 a.m.