ai/at
1
0

curl を更新

2025-09-17 06:39:21 +00:00
parent 2395bd2108
commit 5c72ec6433

57
curl.md

@@ -413,31 +413,36 @@ curl -X POST \
curl -sL -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-d "{
\"repo\": \"$handle\",
\"collection\": \"app.bsky.actor.profile\",
\"rkey\": \"self\",
\"record\": {
\"$type\": \"app.bsky.actor.profile\",
\"displayName\": \"$handle\",
\"description\": \"https://$handle\",
\"pinnedPost\": {
\"$type\": \"com.atproto.repo.strongRef\",
\"uri\": \"$uri\",
\"cid\": \"$cid\"
},
\"avatar\": {
\"$type\": \"blob\",
\"ref\": {\"$link\": \"$img\"},
\"mimeType\": \"image/jpeg\",
\"size\": 12345
},
\"createdAt\": \"2025-09-17T06:21:34Z\"
},
\"commit\": {
\"cid\": \"$cid\",
\"rev\": \"$rev\"
}
}" \
curl -sL -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-d "{
\"repo\": \"$handle\",
\"collection\": \"app.bsky.actor.profile\",
\"rkey\": \"self\",
\"record\": {
\"$type\": \"app.bsky.actor.profile\",
\"displayName\": \"$handle\",
\"description\": \"https://$handle\",
\"pinnedPost\": {
\"$type\": \"com.atproto.repo.strongRef\",
\"uri\": \"$uri\",
\"cid\": \"$cid\"
},
\"avatar\": {
\"$type\": \"blob\",
\"ref\": {\"$link\": \"$img\"},
\"mimeType\": \"image/jpeg\",
\"size\": 12345
},
\"createdAt\": \"2025-09-17T06:21:34Z\"
},
\"commit\": {
\"cid\": \"$cid\",
\"rev\": \"$rev\"
}
}" \
"$pds/xrpc/com.atproto.repo.putRecord"
"$pds/xrpc/com.atproto.repo.putRecord"
```