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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;commit&quot;:{&quot;cid&quot;:&quot;\u003ccid\u003e&quot;,&quot;rev&quot;:&quot;\u003cstring\u003e&quot;},&quot;results&quot;:[{&quot;uri&quot;:&quot;\u003cat-uri\u003e&quot;,&quot;cid&quot;:&quot;\u003ccid\u003e&quot;,&quot;validationStatus&quot;:&quot;\u003cstring\u003e&quot;},{&quot;uri&quot;:&quot;\u003cat-uri\u003e&quot;,&quot;cid&quot;:&quot;\u003ccid\u003e&quot;,&quot;validationStatus&quot;:&quot;\u003cstring\u003e&quot;}]}