diff --git a/curl.md b/curl.md index d65a829..4b57d7a 100644 --- a/curl.md +++ b/curl.md @@ -413,4 +413,16 @@ $ curl -sL "https://syu.is/xrpc/com.atproto.repo.listRecords?repo=ai.syu.is&coll link - https://github.com/bluesky-social/atproto/pull/3761/files -- https://github.com/bluesky-social/social-app/pull/8226 \ No newline at end of file +- https://github.com/bluesky-social/social-app/pull/8226 + +推測 + +- https://github.com/bluesky-social/atproto/blob/main/packages/pds/src/auth-verifier.ts + +```sh +host=syu.is +admin_password=xxx +url=https://${host}/xrpc/com.atproto.admin.takeModerationAction +json="{\"action\": \"com.atproto.admin.defs#modEventReport\", \"subject\": {\"$type\": \"com.atproto.admin.defs#repoRef\", \"did\": \"did:plc:example\"}}" +curl -X POST -u admin:${admin_password} -H "Content-Type: application/json" -d "$json" -sL $url +``` \ No newline at end of file