curl を更新
57
curl.md
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"
|
||||
```
|
Reference in New Issue
Block a user