com.atproto.repo.apply Writes
POST {{baseUrl}}/xrpc/com.atproto.repo.applyWrites
This endpoint is part of the atproto PDS repository management APIs. Requests usually require authentication (unlike the `com.atproto.sync.` endpoints), and are made directly to the user's own PDS instance.*
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
Request Body
{"repo"=>"<at-identifier>", "writes"=>[{"collection"=>"<nsid>", "value"=>{}, "rkey"=>"<string>"}, {"collection"=>"<nsid>", "value"=>{}, "rkey"=>"<string>"}], "validate"=>"<boolean>", "swapCommit"=>"<cid>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"commit":{"cid":"\u003ccid\u003e","rev":"\u003cstring\u003e"},"results":[{"uri":"\u003cat-uri\u003e","cid":"\u003ccid\u003e","validationStatus":"\u003cstring\u003e"},{"uri":"\u003cat-uri\u003e","cid":"\u003ccid\u003e","validationStatus":"\u003cstring\u003e"}]}